add docker build file

This commit is contained in:
jmu
2021-09-15 15:27:35 +08:00
parent 64dc0a5b1d
commit abd9a6af32
2 changed files with 17 additions and 0 deletions

2
.dockerignore Normal file
View File

@@ -0,0 +1,2 @@
node_modules
npm-debug.log

15
Dockerfile Normal file
View File

@@ -0,0 +1,15 @@
FROM node:alpine
ENV NPM_CONFIG_LOGLEVEL info
WORKDIR /usr/src/app
COPY package*.json ./
RUN npm install
COPY . .
EXPOSE 8080
CMD ["yarn", "dev"]