new: docker image workflow
All checks were successful
Build docker image / build (push) Successful in 52s

Signed-off-by: ngn <ngn@ngn.tf>
This commit is contained in:
ngn
2025-01-28 08:13:58 +03:00
parent 1ee2dee9de
commit 52e1a3ec8a
3 changed files with 53 additions and 19 deletions

View File

@ -2,16 +2,23 @@ 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 log ./log
COPY *.mod ./
COPY *.sum ./
RUN go mod download
COPY *.go ./
COPY Makefile ./
COPY lib ./lib
COPY routes ./routes
COPY log ./log
COPY public ./public
COPY routes ./routes
COPY templates ./templates
RUN go build .
RUN make
ENTRYPOINT ["/app/website"]
ENTRYPOINT ["/app/tracker"]