forked from Rahul-Bisht/fivenations
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (24 loc) · 666 Bytes
/
Copy pathDockerfile
File metadata and controls
29 lines (24 loc) · 666 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
FROM mhart/alpine-node:7.9.0
MAINTAINER Bence Varga <vbence86@gmail.com>
# Environment variables
ENV DOCUMENT_ROOT=/var/www
ENV FIVE_NATIONS_PATH=${DOCUMENT_ROOT}/fivenations
ENV FIVE_NATIONS_REPO=https://github.com/vbence86/fivenations
# Install git
RUN apk update && \
apk add bash && \
apk add --update git && \
rm -rf /tmp/* /var/cache/apk/*
# Install app
WORKDIR ${DOCUMENT_ROOT}
RUN git clone ${FIVE_NATIONS_REPO}
WORKDIR ${FIVE_NATIONS_PATH}
RUN git checkout master
RUN npm install
# run a NodeJS server and expose the app
WORKDIR ${FIVE_NATIONS_PATH}
RUN npm run build
RUN npm run stop-server
CMD npm run start-server
# Run app
EXPOSE 9000