forked from resource-watch/resource-watch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
44 lines (35 loc) · 1.35 KB
/
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
43
44
FROM node:8.14.0-alpine
ARG apiEnv=production
ARG apiUrl=https://api.resourcewatch.org
ARG wriApiUrl=https://api.resourcewatch.org/v1
ARG callbackUrl=https://resourcewatch.org/auth
ARG controlTowerUrl=https://production-api.globalforestwatch.org
ARG RW_GOGGLE_API_TOKEN_SHORTENER=not_valid
ENV NODE_ENV production
ENV WRI_API_URL $wriApiUrl
ENV CONTROL_TOWER_URL $controlTowerUrl
ENV CALLBACK_URL $callbackUrl
ENV STATIC_SERVER_URL=
ENV APPLICATIONS rw
ENV ADD_SEARCH_KEY ea4c79622844ade140170b141c36f14f
ENV TRANSIFEX_LIVE_API fca0343bce994bf8ba3dcdeaab389136
ENV BING_MAPS_API_KEY PPB0chXATYqlJ5t8oMPp~8SV9SIe2D0Ntc5sW3HExZA~AqTJgLkvvOdot-y1QukRox537t604Je0pxhygfcraTQGVWr7Ko9LwPoS7-MHW0qY
ENV API_ENV $apiEnv
ENV GOOGLE_ANALYTICS UA-67196006-1
ENV BLOG_API_URL https://blog.resourcewatch.org/wp-json/wp/v2
ENV RW_GOGGLE_API_TOKEN_SHORTENER $RW_GOGGLE_API_TOKEN_SHORTENER
ENV BITLY_TOKEN e3076fc3bfeee976efb9966f49383e1a8fb71c5f
ENV PARDOT_NEWSLETTER_URL https://go.pardot.com/l/120942/2018-01-25/3nzl13
RUN apk update && apk add --no-cache \
build-base gcc bash git \
cairo-dev pango-dev jpeg-dev
# Add app directory
WORKDIR /usr/src/app
# Install app dependencies
COPY package.json yarn.lock /usr/src/app/
RUN yarn install --frozen-lockfile --no-cache --production
# Bundle app source
COPY . /usr/src/app
RUN yarn run build
EXPOSE 3000
CMD ["yarn", "start"]