tracker/Dockerfile

24 lines
347 B
Docker
Raw Normal View History

2024-11-22 16:57:13 +03:00
FROM golang:1.23.2
2024-01-17 20:06:26 +03:00
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
2024-01-17 20:06:26 +03:00
COPY templates ./templates
RUN make
2024-01-17 20:06:26 +03:00
ENTRYPOINT ["/app/tracker"]