First release

This commit is contained in:
Hugo Mårdbrink 2025-02-12 00:09:21 +01:00
parent 7cbcab0d48
commit 0df3d16dda
15 changed files with 71 additions and 98 deletions

22
Dockerfile Normal file
View file

@ -0,0 +1,22 @@
FROM golang:1.22.3-alpine AS builder
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o main .
# Runtime image
FROM alpine:latest
WORKDIR /app
COPY --from=builder /app/main .
COPY views views/
COPY css css/
COPY resources resources/
CMD ["./main"]