Files
eye/Dockerfile
almazlar 282b5f4d19
All checks were successful
Docker Build and Push / build-and-push (push) Successful in 51s
feat: Initialize a React application with Vite for image analysis and translation, configured with Docker and Gitea CI/CD.
2026-02-08 23:36:40 +03:00

20 lines
260 B
Docker

# Build Stage
FROM node:20-alpine as build
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build
# Production Stage
FROM nginx:alpine
COPY --from=build /app/dist /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]