ngn
ce78bf803b
Some checks failed
Build docker image / build (push) Failing after 2m45s
Signed-off-by: ngn <ngn@ngn.tf>
24 lines
347 B
Docker
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"]
|