Files
gun-manager/Dockerfile
Ron Rise a7fef89dda
All checks were successful
🏗️✨ Build Workflow / 🖥️ 🔨 Build (push) Successful in 20m24s
cors
2025-07-29 13:11:12 -04:00

30 lines
453 B
Docker

FROM node:22.14.0 AS frontend
ENV VITE_API=""
WORKDIR /frontend
ADD frontend/ ./
RUN npm install && npm run build
FROM golang:1.24.4 AS backend
ENV CGO_ENABLED=0
WORKDIR /backend
ADD backend/ .
RUN go mod download
RUN go build -o /backend/app
FROM alpine AS runtime
WORKDIR /app
COPY --from=frontend /frontend/dist /app/dist
COPY --from=backend /backend/app /app/app
ADD backend/migrations /app/migrations
EXPOSE 8000
ENTRYPOINT ["/app/app"]