Feat(Initial): Initial Go codebase
All checks were successful
Webhook-Everything/Webhook-Everything/pipeline/head This commit looks good
All checks were successful
Webhook-Everything/Webhook-Everything/pipeline/head This commit looks good
This commit is contained in:
21
docker/Dockerfile
Normal file
21
docker/Dockerfile
Normal file
@@ -0,0 +1,21 @@
|
||||
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"]
|
||||
Reference in New Issue
Block a user