forked from Vizzuality/kenya-dashboard
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (24 loc) · 986 Bytes
/
Dockerfile
File metadata and controls
30 lines (24 loc) · 986 Bytes
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
FROM node:8.1.2
MAINTAINER david.inga@vizzuality.com
ENV NODE_ENV production
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y \
bash git build-essential automake autoconf make g++ libtool apt-transport-https python \
ca-certificates curl gnupg python apt-utils \
--no-install-recommends \
&& curl -sSL https://dl.google.com/linux/linux_signing_key.pub | apt-key add - \
&& echo "deb [arch=amd64] https://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google-chrome.list \
&& apt-get clean && apt-get autoremove && apt-get update \
&& apt-get install -y \
google-chrome-stable \
--no-install-recommends \
&& rm -rf /var/lib/apt/lists/* \
&& npm install -g node-gyp --loglevel warn
WORKDIR /usr/src/app
# Install app dependencies
COPY package.json /usr/src/app
COPY yarn.lock /usr/src/app
RUN yarn install --production
# Bundle app source
COPY . /usr/src/app
RUN yarn run build