ngn f016463aa4
Some checks failed
Build and publish the docker image / build (push) Failing after 15s
update docker container version
Signed-off-by: ngn <ngn@ngn.tf>
2025-01-19 22:43:20 +03:00

25 lines
400 B
Docker

FROM golang:1.23.5 AS build
WORKDIR /app
COPY go.mod .
COPY go.sum .
RUN go mod download
COPY . .
ENV CGO_ENABLED=0 GOOS=linux GOARCH=amd64
RUN go build -o anonymousoverflow
FROM scratch
COPY --from=build /app/anonymousoverflow /anonymousoverflow
COPY --from=build /etc/ssl/certs /etc/ssl/certs
COPY templates /templates
COPY public /public
EXPOSE 8080
CMD ["/anonymousoverflow"]