Initial version of the timetable/countdown

Signed-off-by: Alban Bedel <albeu@free.fr>
This commit is contained in:
2024-08-17 19:15:08 +02:00
commit 6fbfa94bbc
9 changed files with 513 additions and 0 deletions

18
Dockerfile Normal file
View File

@@ -0,0 +1,18 @@
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"]