Files
todo/frontend/Dockerfile
almazlar 4050c08859
All checks were successful
Release and Build Docker Images / release-and-build (push) Successful in 1m30s
fix: update API base URL and add healthcheck for backend service
2026-02-22 12:29:55 +03:00

20 lines
398 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}
ARG VITE_BASE_URL=https://todo.almazlar.com/api
ENV VITE_BASE_URL=${VITE_BASE_URL}
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;"]