dockerfile
This commit is contained in:
parent
11e5c9a2a6
commit
8c0127d1b4
6
.dockerignore
Normal file
6
.dockerignore
Normal file
@ -0,0 +1,6 @@
|
||||
.git
|
||||
node_modules
|
||||
build
|
||||
__mocks__
|
||||
.vscode
|
||||
helm
|
16
Dockerfile
Normal file
16
Dockerfile
Normal file
@ -0,0 +1,16 @@
|
||||
# build environment
|
||||
FROM node:12 as builder
|
||||
WORKDIR /app
|
||||
|
||||
COPY package*.json ./
|
||||
RUN npm install
|
||||
|
||||
COPY . ./
|
||||
RUN npm run build
|
||||
|
||||
# production environment
|
||||
FROM node:12
|
||||
COPY --from=builder /app/build ./build
|
||||
RUN npm install
|
||||
EXPOSE 80
|
||||
CMD ["sh","-c","node serve -s build -p 80"]
|
Loading…
x
Reference in New Issue
Block a user