Files
todo/frontend/Dockerfile
almazlar cf58ccb2c8
Some checks failed
Build and Push Docker Images / build-and-push (push) Failing after 2m23s
feat: Add initial frontend dependencies, base CSS, and Gitea Docker build workflow.
2026-02-20 23:12:41 +03:00

14 lines
247 B
Docker

# Build stage
FROM node:18-alpine AS build
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
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;"]