Docker -> add docker files
parent
b7917ce3e5
commit
10ba48fd08
|
|
@ -0,0 +1 @@
|
||||||
|
node_modules/
|
||||||
|
|
@ -0,0 +1,20 @@
|
||||||
|
# pull official base image
|
||||||
|
FROM node:13.12.0-alpine
|
||||||
|
|
||||||
|
# set working directory
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
# install app dependencies
|
||||||
|
|
||||||
|
COPY package.json ./
|
||||||
|
COPY package-lock.json ./
|
||||||
|
|
||||||
|
RUN npm install --silent
|
||||||
|
|
||||||
|
# add app
|
||||||
|
COPY . ./
|
||||||
|
|
||||||
|
CMD ["npm", "build"]
|
||||||
|
|
||||||
|
# start app
|
||||||
|
CMD ["npm", "start"]
|
||||||
Loading…
Reference in New Issue