18 lines
338 B
Docker
18 lines
338 B
Docker
FROM images.internal/devel:latest AS builder
|
|
|
|
WORKDIR /app
|
|
|
|
COPY . /app
|
|
|
|
RUN make build
|
|
|
|
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
|
|
|
|
ENTRYPOINT [ "./pastebin", "api" ]
|