abyss/Dockerfile

24 lines
353 B
Docker
Raw Normal View History

2024-09-06 10:33:57 -03:00
FROM golang:1.23 AS builder
2024-08-19 15:50:17 -03:00
WORKDIR /app
2024-09-03 21:54:21 -03:00
COPY go.mod go.sum ./
COPY static/ ./static/
COPY templates/ ./templates
2024-08-19 15:50:17 -03:00
RUN go mod download
COPY *.go ./
RUN CGO_ENABLED=0 GOOS=linux go build -o /abyss
2024-09-06 10:33:57 -03:00
FROM scratch
COPY --from=builder /abyss /abyss
COPY --from=builder /app/static /static
COPY --from=builder /app/templates /templates
2024-09-06 10:33:57 -03:00
2024-08-19 15:50:17 -03:00
CMD ["/abyss"]