forked from sarmatdev/ptah-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
36 lines (27 loc) · 808 Bytes
/
Dockerfile
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
FROM node:lts-alpine
RUN apk update && apk add git
WORKDIR /application
ENV NODE_ENV=production \
AUTH_TOKEN_SECRET="" \
PASSWORD_SECRET="" \
MONGO_DSN="" \
CORS_VALID_ORIGINS="" \
MAILCHIMP_METADATA_URL="https://login.mailchimp.com/oauth2/metadata" \
MAILCHIMP_MAILLISTS_PATH="/3.0/lists" \
NGINX_CONFIGS_DIR="/etc/nginx/landings/conf.d" \
LANDINGS_HTML_DIR="/etc/nginx/landings/public/landings" \
LANDINGS_PUBLISHING_HOST="" \
ROUTES_PREFIX="/api/v1" \
SENTRY_DSN="" \
SERVER_PORT=3000 \
S3_ACCESS_KEY_ID="" \
S3_SECRET_ACCESS_KEY="" \
S3_BUCKET="" \
S3_REGION="" \
CDN_HOST="" \
CDN_PATH=""
COPY package.json /application
RUN npm install && npm prune --production
COPY . /application
EXPOSE 3000
CMD ["node", "./index.js"]