first commit
This commit is contained in:
19
Dockerfile
Normal file
19
Dockerfile
Normal file
@@ -0,0 +1,19 @@
|
||||
FROM node:17.9.0-alpine3.14 AS dev
|
||||
|
||||
RUN mkdir /app && chown -R node /app
|
||||
WORKDIR /app
|
||||
USER node
|
||||
|
||||
FROM dev AS builder
|
||||
|
||||
COPY --chown=node package.json package-lock.json ./
|
||||
RUN npm install
|
||||
|
||||
COPY --chown=node . .
|
||||
RUN npm run build
|
||||
|
||||
FROM nginx:1.21.6-alpine
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
COPY --from=builder /app/dist /usr/share/nginx/html
|
||||
Reference in New Issue
Block a user