Files
todo/frontend/Dockerfile
almazlar 37ae9dbe53
All checks were successful
Release and Build Docker Images / release-and-build (push) Successful in 1m29s
feat: Introduce application version display in the frontend footer, showing both frontend and backend versions with integrated build arguments.
2026-02-21 10:34:08 +03:00

16 lines
313 B
Docker

# Build stage
FROM node:18-alpine AS build
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
ARG VITE_APP_VERSION=dev
ENV VITE_APP_VERSION=${VITE_APP_VERSION}
RUN npm run build
# Run stage
FROM nginx:alpine
COPY --from=build /app/dist /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]