forked from popcodeorg/popcode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
23 lines (15 loc) · 673 Bytes
/
Dockerfile
File metadata and controls
23 lines (15 loc) · 673 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM node:8.12.0
RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - && \
sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' && \
apt-get update && \
apt-get install -y google-chrome-stable
RUN npm install --global npm@6.4.1
RUN echo '{"allow_root": true}' > /root/.bowerrc && \
npm config set unsafe-perm true
WORKDIR /app
ARG install_dependencies=true
COPY package.json package-lock.json bower.json /app/
RUN if [ $install_dependencies = true ]; then npm ci; fi
COPY . /app/
ENTRYPOINT ["npx", "--quiet", "--no-install"]
EXPOSE 3000