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 2e2982d6c2

View File

@ -4,6 +4,8 @@ WORKDIR /app
COPY go.mod go.sum ./ COPY go.mod go.sum ./
COPY go.mod ./ COPY go.mod ./
COPY static ./
COPY templates ./
RUN go mod download RUN go mod download
@ -14,5 +16,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 /
COPY --from=builder /app/templates /
CMD ["/abyss"] CMD ["/abyss"]