Files
gun-manager/Dockerfile
Ron Rise fd1a88bd9f
All checks were successful
🏗️✨ Build Workflow / 🖥️ 🔨 Build (push) Successful in 15m50s
migrations
2025-07-29 12:15:15 -04:00

28 lines
436 B
Docker

FROM node:22.14.0 AS frontend
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"]