18 lines
301 B
Docker
18 lines
301 B
Docker
FROM node as vite-app
|
|
|
|
ARG VITE_API_URL
|
|
|
|
WORKDIR /app/client
|
|
COPY . .
|
|
|
|
RUN ["npm", "i"]
|
|
RUN ["npm", "run", "build"]
|
|
|
|
FROM nginx:alpine
|
|
|
|
COPY nginx.conf /etc/nginx
|
|
|
|
RUN rm -rf /usr/share/nginx/html/*
|
|
COPY --from=vite-app /app/client/dist /usr/share/nginx/html
|
|
|
|
ENTRYPOINT ["nginx", "-g", "daemon off;"] |