new: docker workflow action
Some checks failed
Build docker image / build (push) Failing after 2m45s

Signed-off-by: ngn <ngn@ngn.tf>
This commit is contained in:
ngn
2025-01-28 07:38:24 +03:00
parent c841695ed4
commit ce78bf803b
2 changed files with 38 additions and 4 deletions

View File

@ -2,16 +2,22 @@ FROM golang:1.23.2
WORKDIR /app
COPY *.go ./
COPY *.mod ./
COPY *.sum ./
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 go build .
RUN make
ENTRYPOINT ["/app/tracker"]