ascii-live/Dockerfile
franz.germann e72ef905ce
All checks were successful
ci / build (push) Successful in 43s
testing removal of ca-certicates from docker file
2025-04-28 15:38:54 +02:00

13 lines
508 B
Docker

FROM golang:1.24.1-alpine AS build-env
ENV GO111MODULE=on
WORKDIR /go/src/github.com/hugomd/ascii-live/
# RUN apk add ca-certificates
COPY . /go/src/github.com/hugomd/ascii-live/
RUN cd /go/src/github.com/hugomd/ascii-live && \
go mod download && \
CGO_ENABLED=0 GOOS=linux go build -installsuffix cgo -o main .
FROM scratch
COPY --from=build-env /go/src/github.com/hugomd/ascii-live/main /
# COPY --from=build-env /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
CMD ["/main"]