build: add official Docker image (#708)
This commit is contained in:
1 parent
ebf74860f4
commit
359b20e75d
5 files changed
+86
-2
No files matched your search
+23
@@ -0,0 +1,23 @@
|
||||
#
|
||||
# Builder stage, builds the application in node
|
||||
#
|
||||
FROM node:16-alpine as builder
|
||||
|
||||
RUN apk add zip
|
||||
|
||||
WORKDIR /app
|
||||
COPY package*.json /app/
|
||||
|
||||
RUN npm install
|
||||
|
||||
COPY ./ /app/
|
||||
|
||||
RUN npm run build
|
||||
|
||||
#
|
||||
# Runner stage, runs the application in nginx
|
||||
#
|
||||
FROM nginx:stable-alpine as runner
|
||||
|
||||
COPY --from=builder /app/.docker/nginx.conf /etc/nginx/conf.d/default.conf
|
||||
COPY --from=builder /app/dist/ /usr/share/nginx/html/
|
||||
Reference in new issue
Block a user