This commit is contained in:
xuthus5 2024-03-19 02:32:13 +08:00
parent 13fd643c7a
commit e62bd7fb2a
Signed by: xuthus5
GPG Key ID: A23CF9620CBB55F9
1 changed files with 8 additions and 3 deletions

View File

@ -1,4 +1,4 @@
FROM images.internal/devel:latest
FROM images.internal/devel:latest AS builder
WORKDIR /app
@ -6,7 +6,12 @@ COPY . /app
RUN make build
EXPOSE 38002
FROM images.internal/golang:latest
COPY --from=builder /app/config_dev.yaml /app/config_dev.yaml
COPY --from=builder /app/pastebin /app/pastebin
COPY --from=builder /app/webui/dist /app/webui/dist/
EXPOSE 38001
EXPOSE 38080
ENTRYPOINT [ "./pastebin", "api" ]