website/Dockerfile
ngn 52e1a3ec8a
All checks were successful
Build docker image / build (push) Successful in 52s
new: docker image workflow
Signed-off-by: ngn <ngn@ngn.tf>
2025-01-28 08:13:58 +03:00

25 lines
365 B
Docker

FROM golang:1.23.2
WORKDIR /app
RUN useradd runner -r -u 1001 -d /app
RUN chown -R runner:runner /app
USER runner
COPY *.mod ./
COPY *.sum ./
RUN go mod download
COPY *.go ./
COPY Makefile ./
COPY lib ./lib
COPY log ./log
COPY public ./public
COPY routes ./routes
COPY templates ./templates
RUN make
ENTRYPOINT ["/app/tracker"]