Feat(Initial): Initial Go codebase
All checks were successful
Webhook-Everything/Webhook-Everything/pipeline/head This commit looks good

This commit is contained in:
2022-05-29 00:06:52 +08:00
parent f31bc0cd52
commit 53829a2788
27 changed files with 1489 additions and 0 deletions

21
docker/Dockerfile Normal file
View 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"]