15 lines
294 B
Plaintext
15 lines
294 B
Plaintext
FROM node:20-slim AS builder
|
|
|
|
WORKDIR /app
|
|
COPY package.json package-lock.json ./
|
|
RUN npm ci
|
|
COPY . .
|
|
|
|
ARG PUBLIC_API_URL
|
|
ENV PUBLIC_API_URL=$PUBLIC_API_URL
|
|
|
|
RUN npm run build
|
|
|
|
FROM nginx:alpine
|
|
COPY --from=builder /app/build /usr/share/nginx/html
|
|
COPY nginx.conf /etc/nginx/conf.d/default.conf |