Files
Tom Chivert 9032542390
docker / docker (push) Successful in 1m9s
Update Dockerfile
2025-02-07 12:46:23 +01: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 8080
ENTRYPOINT ["/app/gallery"]