ngn
f016463aa4
Some checks failed
Build and publish the docker image / build (push) Failing after 15s
Signed-off-by: ngn <ngn@ngn.tf>
25 lines
400 B
Docker
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"]
|