update dockerfile

This commit is contained in:
2025-03-10 07:00:30 +00:00
parent e3731b255f
commit cb3b1a429c

View File

@@ -19,10 +19,12 @@ RUN ./metagen --env=production build
RUN go build --ldflags '-linkmode=external -extldflags=-static' ./cmd/server
RUN chmod +x ./server
FROM alpine:latest
FROM scratch
COPY --from=build /app/server /app/server
COPY --from=build /app/wwwroot /app/wwwroot
COPY --from=build /app/passwords.db /app/passwords.db
CMD ["/app/server"]
WORKDIR /app
ENTRYPOINT ["./server"]