All checks were successful
Webhook-Everything/Webhook-Everything/pipeline/head This commit looks good
22 lines
359 B
Docker
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"]
|