2022-02-08 04:47:10 -05:00
|
|
|
FROM ubuntu/postgres:12-20.04_beta
|
2022-02-07 08:33:56 -05:00
|
|
|
|
2022-02-07 09:05:30 -05:00
|
|
|
RUN apt-get update
|
|
|
|
RUN apt-get upgrade
|
|
|
|
|
2022-02-07 10:29:01 -05:00
|
|
|
RUN apt-get install -y build-essential wget
|
2022-02-07 09:05:30 -05:00
|
|
|
RUN apt-get install -y python3 python3-pip python3-dev python3-venv
|
2022-02-07 11:16:04 -05:00
|
|
|
RUN apt install parallel -y
|
2022-02-07 09:05:30 -05:00
|
|
|
|
2022-02-07 09:24:34 -05:00
|
|
|
ADD https://github.com/ufoscout/docker-compose-wait/releases/download/2.2.1/wait /wait
|
|
|
|
RUN chmod +x /wait
|
2022-02-07 09:05:30 -05:00
|
|
|
|
2022-02-07 09:35:42 -05:00
|
|
|
RUN mkdir /colouring-london
|
|
|
|
COPY app /colouring-london/app
|
|
|
|
COPY migrations /colouring-london/migrations
|
|
|
|
COPY etl /colouring-london/etl
|
2022-02-07 09:05:30 -05:00
|
|
|
|
2022-02-08 05:02:31 -05:00
|
|
|
ENV NODE_VERSION=16.13.2
|
|
|
|
RUN apt install -y curl
|
|
|
|
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
|
|
|
|
ENV NVM_DIR=/root/.nvm
|
|
|
|
RUN . "$NVM_DIR/nvm.sh" && nvm install ${NODE_VERSION}
|
|
|
|
RUN . "$NVM_DIR/nvm.sh" && nvm use v${NODE_VERSION}
|
|
|
|
RUN . "$NVM_DIR/nvm.sh" && nvm alias default v${NODE_VERSION}
|
|
|
|
ENV PATH="/root/.nvm/versions/node/v${NODE_VERSION}/bin/:${PATH}"
|
2022-02-07 09:05:30 -05:00
|
|
|
|
2022-02-08 05:45:19 -05:00
|
|
|
RUN npm install -g npm@latest
|
|
|
|
|
|
|
|
WORKDIR ./colouring-london/app
|
|
|
|
RUN npm install
|
|
|
|
|
2022-02-07 08:33:56 -05:00
|
|
|
EXPOSE 8080
|
2022-02-08 09:09:42 -05:00
|
|
|
CMD /wait && npm start
|