dockerfile
parent
a66c86b156
commit
f7841b7324
|
@ -0,0 +1,17 @@
|
||||||
|
# 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 ./application
|
||||||
|
|
||||||
|
RUN npm install -g serve@6
|
||||||
|
EXPOSE 80
|
||||||
|
CMD ["sh","-c","serve -s application -p 80"]
|
Loading…
Reference in New Issue