From e62bd7fb2a69aed511f3827e6864d9eeae6547c2 Mon Sep 17 00:00:00 2001 From: xuthus5 Date: Tue, 19 Mar 2024 02:32:13 +0800 Subject: [PATCH] fix --- Dockerfile | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index b591a1b..738aa89 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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" ]