Initial version of the timetable/countdown
Signed-off-by: Alban Bedel <albeu@free.fr>
This commit is contained in:
18
Dockerfile
Normal file
18
Dockerfile
Normal 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"]
|
||||
Reference in New Issue
Block a user