🐐
This commit is contained in:
15
frontend/dockerfile
Normal file
15
frontend/dockerfile
Normal file
@@ -0,0 +1,15 @@
|
||||
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
|
||||
Reference in New Issue
Block a user