Added Dockerfile to VCS
parent
a3d615db5d
commit
3cd52a85f3
|
@ -2,9 +2,6 @@
|
||||||
node_modules/
|
node_modules/
|
||||||
npm-debug.log
|
npm-debug.log
|
||||||
|
|
||||||
# Docker
|
|
||||||
Dockerfile
|
|
||||||
|
|
||||||
# Istanbul reports
|
# Istanbul reports
|
||||||
coverage/
|
coverage/
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,24 @@
|
||||||
|
## TRACMAN DOCKERFILE
|
||||||
|
|
||||||
|
# Node version
|
||||||
|
FROM node:8.4.0
|
||||||
|
|
||||||
|
# Install tracman from Github
|
||||||
|
RUN git clone https://github.com/Tracman-Org/Server.git /tracman
|
||||||
|
WORKDIR /tracman
|
||||||
|
|
||||||
|
# Install dependencies
|
||||||
|
COPY package.json package-lock.json ./
|
||||||
|
RUN npm install
|
||||||
|
|
||||||
|
# Bundle source
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
# Build
|
||||||
|
RUN npm run build
|
||||||
|
|
||||||
|
# Open port
|
||||||
|
EXPOSE 8080
|
||||||
|
|
||||||
|
# Run
|
||||||
|
CMD [ "npm", "start" ]
|
Loading…
Reference in New Issue