Added Dockerfile and scripts to build and run a docker image for development

This commit is contained in:
2021-09-06 14:02:15 -04:00
parent 0c9fc19729
commit f018204482
4 changed files with 25 additions and 0 deletions

17
Dockerfile Normal file
View File

@ -0,0 +1,17 @@
FROM node:16.8
WORKDIR /usr/src/minecraft-website
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run gulp sass
# expose node_modules as a volume so it stays within the container
VOLUME node_modules
EXPOSE 3000
CMD [ "npm", "run", "server" ]