new version
This commit is contained in:
+7
-7
@@ -1,16 +1,16 @@
|
||||
FROM golang:1.22-alpine as build
|
||||
FROM docker.io/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 .
|
||||
RUN --mount=type=cache,target="/root/.cache/go-build" go build -ldflags="-w -s" -gcflags=all=-l .
|
||||
|
||||
FROM nginx:alpine-slim
|
||||
FROM scratch
|
||||
|
||||
COPY --from=build app app
|
||||
# copy ssl for work HTTPS requests to gitea instance
|
||||
COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
||||
WORKDIR /app
|
||||
COPY nginx.conf /etc/nginx/nginx.conf
|
||||
|
||||
ENTRYPOINT [ "sh", "entrypoint.sh" ]
|
||||
ENV GIN_MODE=release
|
||||
ENTRYPOINT [ "./giteapages" ]
|
||||
Reference in New Issue
Block a user