forked from veteransaffairscanada/vac-benefits-directory
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
42 lines (29 loc) · 784 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
36
37
38
39
40
41
42
FROM node:10-alpine
MAINTAINER Thomas Craig <[email protected]>
LABEL Description="Government of Canada VAC Proof of Concept" Vendor="Veterans Affairs Canada"
WORKDIR /app
ADD . .
ARG SENTRY_DSN
ENV SENTRY_DSN ${SENTRY_DSN}
ARG GA_UA
ENV GA_UA ${GA_UA}
ARG GA_UA_CDS
ENV GA_UA_CDS ${GA_UA_CDS}
ARG CIRCLE_REPOSITORY_URL
ENV CIRCLE_REPOSITORY_URL ${CIRCLE_REPOSITORY_URL}
ARG WEBHOOK_URL
ENV WEBHOOK_URL ${WEBHOOK_URL}
ARG CIRCLE_BRANCH
ENV CIRCLE_BRANCH ${CIRCLE_BRANCH}
ARG CIRCLE_PROJECT_REPONAME
ENV CIRCLE_PROJECT_REPONAME ${CIRCLE_PROJECT_REPONAME}
ARG AIRTABLE_READ_KEY
ENV AIRTABLE_READ_KEY ${AIRTABLE_READ_KEY}
ARG GH_TOKEN
ENV GH_TOKEN ${GH_TOKEN}
ARG NPM_TOKEN
ENV NPM_TOKEN ${NPM_TOKEN}
RUN yarn install && yarn build
USER node
EXPOSE 3000
CMD yarn start