build!: fix error that would make an initial setup not work properly

This commit is contained in:
jabuxas 2024-10-17 19:03:34 -03:00
parent 766efc53c3
commit 0b3f167fce

View File

@ -3,7 +3,10 @@ FROM golang:1.23 AS builder
WORKDIR /app WORKDIR /app
COPY go.mod go.sum ./ COPY go.mod go.sum ./
COPY go.mod ./
COPY static/ ./static/
COPY templates/ ./templates
RUN go mod download RUN go mod download
@ -14,5 +17,7 @@ RUN CGO_ENABLED=0 GOOS=linux go build -o /abyss
FROM scratch FROM scratch
COPY --from=builder /abyss /abyss COPY --from=builder /abyss /abyss
COPY --from=builder /app/static /static
COPY --from=builder /app/templates /templates
CMD ["/abyss"] CMD ["/abyss"]