2024-11-22 16:57:13 +03:00
|
|
|
FROM golang:1.23.2
|
2024-01-17 20:06:26 +03:00
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
2025-01-28 07:38:24 +03:00
|
|
|
RUN useradd runner -r -u 1001 -d /app
|
|
|
|
RUN chown -R runner:runner /app
|
|
|
|
USER runner
|
2024-08-26 00:24:09 +03:00
|
|
|
|
2025-01-28 07:38:24 +03:00
|
|
|
COPY *.mod ./
|
|
|
|
COPY *.sum ./
|
|
|
|
|
|
|
|
RUN go mod download
|
|
|
|
|
|
|
|
COPY *.go ./
|
2024-08-26 00:24:09 +03:00
|
|
|
COPY lib ./lib
|
|
|
|
COPY log ./log
|
|
|
|
COPY public ./public
|
|
|
|
COPY routes ./routes
|
2024-01-17 20:06:26 +03:00
|
|
|
COPY templates ./templates
|
|
|
|
|
2025-01-28 07:38:24 +03:00
|
|
|
RUN make
|
2024-01-17 20:06:26 +03:00
|
|
|
|
|
|
|
ENTRYPOINT ["/app/tracker"]
|