timetable-mgr/Dockerfile
Fred Boniface ff98adf1a6
All checks were successful
Go Test / test (push) Successful in 1m5s
Prevent running as root user
2024-04-16 19:20:19 +01:00

9 lines
185 B
Docker

FROM golang:alpine as builder
WORKDIR /source
COPY . .
RUN go build .
FROM scratch
COPY --from=builder /source/timetable-mgr /bin/timetable-mgr
USER nobody
CMD [ "/bin/timetable-mgr" ]