first version

This commit is contained in:
2024-03-26 19:04:00 +03:00
parent 209534e8d5
commit 53a1aa2cc5
12 changed files with 512 additions and 25 deletions
+16
View File
@@ -0,0 +1,16 @@
FROM golang:1.22-alpine as build
WORKDIR /app
COPY . .
ENV GOCACHE=/root/.cache/go-build
RUN --mount=type=cache,target="/root/.cache/go-build" go build .
RUN --mount=type=cache,target="/root/.cache/go-build" go build -C cert .
FROM nginx:alpine-slim
COPY --from=build app app
WORKDIR /app
COPY nginx.conf /etc/nginx/nginx.conf
ENTRYPOINT [ "sh", "entrypoint.sh" ]