2025-01-28 04:11:48 +00:00
|
|
|
FROM golang:1.23.5
|
2024-03-21 23:20:24 +03:00
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
2025-01-28 08:38:02 +03:00
|
|
|
RUN useradd runner -r -u 1001 -d /app
|
|
|
|
RUN chown -R runner:runner /app
|
|
|
|
USER runner
|
2024-08-26 00:27:25 +03:00
|
|
|
|
2025-01-28 08:38:02 +03:00
|
|
|
COPY *.mod ./
|
|
|
|
COPY *.sum ./
|
|
|
|
|
|
|
|
RUN go mod download
|
|
|
|
|
|
|
|
COPY *.go ./
|
|
|
|
COPY Makefile ./
|
2024-03-21 23:20:24 +03:00
|
|
|
COPY lib ./lib
|
2024-08-26 02:49:00 +03:00
|
|
|
COPY log ./log
|
2024-03-21 23:20:24 +03:00
|
|
|
COPY public ./public
|
|
|
|
COPY routes ./routes
|
|
|
|
COPY templates ./templates
|
|
|
|
|
2025-01-28 08:38:02 +03:00
|
|
|
RUN make
|
2024-03-21 23:20:24 +03:00
|
|
|
|
|
|
|
ENTRYPOINT ["/app/security"]
|