Added Dockerfile to VCS

master
Keith Irwin 2018-10-28 20:10:57 +00:00
parent a3d615db5d
commit 3cd52a85f3
No known key found for this signature in database
GPG Key ID: 7A2D6993A44010AA
2 changed files with 24 additions and 3 deletions

3
.gitignore vendored
View File

@ -2,9 +2,6 @@
node_modules/
npm-debug.log
# Docker
Dockerfile
# Istanbul reports
coverage/

24
Dockerfile Executable file
View File

@ -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" ]