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" ]