diff --git a/Dockerfile b/Dockerfile index 87f084f..14476e6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,8 +4,8 @@ WORKDIR /app COPY go.mod go.sum ./ +# this is needed because we embed these files into the binary COPY static/ ./static/ - COPY templates/ ./templates RUN go mod download @@ -17,7 +17,5 @@ RUN CGO_ENABLED=0 GOOS=linux go build -o /abyss FROM scratch COPY --from=builder /abyss /abyss -COPY --from=builder /app/static /static -COPY --from=builder /app/templates /templates CMD ["/abyss"]