chore: don't include sourcemap in image

This commit is contained in:
Paul Pan 2024-01-05 00:24:47 +08:00
parent b3ca1ea7d0
commit 86220fed14
Signed by: Paul
GPG Key ID: D639BDF5BA578AF4
2 changed files with 5 additions and 2 deletions

View File

@ -1,8 +1,11 @@
# top
/woj
# runner
# resource
resource/deploy
resource/frontend
resource/runner/.mark.image
resource/runner/problem/*
resource/runner/tmp/*
resource/runner/user/*

View File

@ -17,6 +17,7 @@ RUN --mount=type=cache,id=golang,target=/go/pkg make build
# UI Builder
FROM git.0x7f.app/woj/woj-ui:1.0.0 AS ui-builder
RUN find /app -type f -name "*.map" -delete
# main image
FROM docker.io/library/alpine
@ -26,7 +27,6 @@ RUN apk --no-cache add tzdata ca-certificates libc6-compat bash
COPY --from=go-builder /builder/config.docker.yaml /app
COPY --from=go-builder /builder/docker-entrypoint.sh /app
COPY --from=go-builder /builder/resource/frontend /app/resource/frontend
COPY --from=go-builder /builder/woj /app
COPY --from=ui-builder /app /app/resource/frontend