+10
-1
@@ -1,9 +1,18 @@
|
||||
# syntax=docker/dockerfile:1
|
||||
|
||||
FROM node:20-alpine AS build
|
||||
WORKDIR /app
|
||||
|
||||
COPY package.json package-lock.json ./
|
||||
RUN npm ci --no-audit --no-fund
|
||||
|
||||
COPY . .
|
||||
RUN npm run build
|
||||
|
||||
FROM nginx:alpine
|
||||
WORKDIR /usr/share/nginx/html
|
||||
|
||||
COPY dist ./
|
||||
COPY --from=build /app/dist ./
|
||||
|
||||
ENV API_PROXY_PASS=""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user