2025-01-28 04:12:39 +00:00
|
|
|
FROM golang:1.23.5
|
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 ./
|
2025-01-28 07:56:11 +03:00
|
|
|
COPY Makefile ./
|
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"]
|