15 lines
390 B
Docker
15 lines
390 B
Docker
FROM docker.io/library/node:20-slim AS build
|
|
WORKDIR /app
|
|
COPY package*.json ./
|
|
ARG VITE_API_BASE
|
|
ENV VITE_API_BASE=$VITE_API_BASE
|
|
RUN npm install --no-progress
|
|
COPY . .
|
|
RUN npm run build
|
|
|
|
FROM docker.io/library/nginx:1.27-alpine AS final
|
|
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
|
COPY --from=build /app/dist /usr/share/nginx/html/taller
|
|
EXPOSE 8081
|
|
CMD ["nginx", "-g", "daemon off;"]
|