-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.compose
70 lines (45 loc) · 1.11 KB
/
Dockerfile.compose
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
FROM node:18-alpine
WORKDIR /app
COPY package.json .
COPY yarn.lock .
RUN yarn install --frozen-lockfile --network-timeout 1000000000
COPY . .
ARG DATABASE_URL
ENV DATABASE_URL=$DATABASE_URL
ARG POSTGRES_SSL
ENV POSTGRES_SSL=$POSTGRES_SSL
ARG API_URL
ENV API_URL=$API_URL
ARG APP_BASE_URL
ENV APP_BASE_URL=$APP_BASE_URL
ARG JWT_SECRET
ENV JWT_SECRET=$JWT_SECRET
ARG MAIL_HOST
ENV MAIL_HOST=$MAIL_HOST
ARG MAIL_PORT
ENV MAIL_PORT=$MAIL_PORT
ARG MAIL_USERNAME
ENV MAIL_USERNAME=$MAIL_USERNAME
ARG MAIL_PASSWORD
ENV MAIL_PASSWORD=$MAIL_PASSWORD
ARG MAIL_FROM
ENV MAIL_FROM=$MAIL_FROM
ARG MAIL_CONTACT
ENV MAIL_CONTACT=$MAIL_CONTACT
ARG LOGIN_DELAY_ATTEMPTS
ENV LOGIN_DELAY_ATTEMPTS=$LOGIN_DELAY_ATTEMPTS
ARG LOGIN_DELAY_SECONDS
ENV LOGIN_DELAY_SECONDS=$LOGIN_DELAY_SECONDS
ARG AUTH_DURATION
ENV AUTH_DURATION=$AUTH_DURATION
ARG AUTH_REFRESH_START
ENV AUTH_REFRESH_START=$AUTH_REFRESH_START
ARG AUTH_MAX_DURATION
ENV AUTH_MAX_DURATION=$AUTH_MAX_DURATION
ARG DOCUMENTS_FS_PATH
ENV DOCUMENTS_FS_PATH=$DOCUMENTS_FS_PATH
ENV NODE_ENV=production
ENV NEXT_TELEMETRY_DISABLED=1
RUN yarn build
USER node
CMD ["yarn", "start"]