tracker/Dockerfile
ngn ce78bf803b
Some checks failed
Build docker image / build (push) Failing after 2m45s
new: docker workflow action
Signed-off-by: ngn <ngn@ngn.tf>
2025-01-28 07:38:24 +03:00

24 lines
347 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 lib ./lib
COPY log ./log
COPY public ./public
COPY routes ./routes
COPY templates ./templates
RUN make
ENTRYPOINT ["/app/tracker"]