-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPROD_Dockerfile
More file actions
25 lines (25 loc) · 1.25 KB
/
Copy pathPROD_Dockerfile
File metadata and controls
25 lines (25 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
FROM node:18.11.0-buster-slim
RUN apt-get update \
&& apt-get install -y wget gnupg ca-certificates procps libxss1 \
&& wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \
&& sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' \
&& wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - \
&& sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt buster-pgdg main" > /etc/apt/sources.list.d/pgdg.list' \
&& apt-get update \
&& apt-get install -y google-chrome-stable postgresql-client-14 pigz pnmtopng \
&& rm -rf /var/lib/apt/lists/*
ARG NODE_ENV
RUN yarn global add rimraf
RUN export TZ=America/Sao_Paulo
WORKDIR /app/myoraculum-botloader
RUN rm -rf ./config ./build package.json yarn.lock .env tsconfigParser.js ormconfig.js tsconfig.json
COPY package.json yarn.lock ./
RUN yarn prod:install
COPY tsconfigParser.js ormconfig.js tsconfig.json ./
COPY cert/db/client.key ./cert/db/client.key
COPY cert/db/client.crt ./cert/db/client.crt
COPY cert/db/root.crt ./cert/db/root.crt
COPY cert/web/key.pem ./cert/web/key.pem
COPY cert/web/cert.pem ./cert/web/cert.pem
COPY build ./build
COPY config ./config