Files
webhook-everything/docker/Dockerfile
Samuel Pua 53829a2788
All checks were successful
Webhook-Everything/Webhook-Everything/pipeline/head This commit looks good
Feat(Initial): Initial Go codebase
2022-05-29 00:06:52 +08:00

22 lines
359 B
Docker

FROM golang:1.17-buster as go-builder
COPY . /build
WORKDIR /build/
RUN /build/scripts/build.sh
FROM ubuntu
ENV debian_frontend=noninteractive
WORKDIR /app/
RUN apt update
RUN apt install -y ca-certificates
COPY --from=go-builder /build/backend/server /app/server
COPY .env /app/.env
RUN useradd -ms /bin/bash user
USER user
ENTRYPOINT ["/app/server"]