Files
gallery/Dockerfile
tchivert 0a601414f8
docker / docker (push) Successful in 1m47s
try removing CGO
2024-08-11 02:08:17 +02:00

22 lines
296 B
Docker

FROM golang AS build
WORKDIR /app
COPY go.mod ./
RUN go mod download
COPY *.go ./
RUN GOOS=linux go build -o gallery .
FROM debian:stable-slim
WORKDIR /app
COPY --from=build /app/gallery ./
COPY ./templates /app/templates
COPY ./assets /app/assets
EXPOSE 2222
ENTRYPOINT ["/app/gallery"]