Dockerfile changes

This commit is contained in:
Finley Ghosh 2025-07-23 20:44:16 +10:00
parent 5953bfa8d5
commit b3ce7a1054

View file

@ -2,7 +2,10 @@
FROM golang:1.24.0 AS builder
WORKDIR /app
COPY go-app/ .
RUN go build -o server ./cmd
COPY go-app/templates ./templates
COPY go-app/static ./static
COPY go-app/.env.example .env
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o server ./cmd/server/main.go
FROM debian:bullseye-slim
WORKDIR /app