Files
timetable/Dockerfile
2024-08-17 19:15:08 +02:00

19 lines
355 B
Docker

FROM golang:1.22-alpine as builder
ARG CGO_ENABLED=0
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY *.go .
RUN go build
FROM gcr.io/distroless/static:nonroot
WORKDIR /app
COPY --from=builder /app/timetable /usr/bin/timetable
COPY timetables.yaml .
COPY static/*.html static/*.css static/*.js static/
USER nonroot
ENTRYPOINT ["timetable"]