From 1dac9b17785523d8ec2603cf3fbfe7581d79ca8e Mon Sep 17 00:00:00 2001 From: githubofkrishnadhas Date: Thu, 21 May 2026 16:49:19 +0530 Subject: [PATCH] Fix Dockerfile: ensure proper installation of dependencies and correct WORKDIR path --- Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 882c4fb..fa78457 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,8 @@ FROM golang:1.26-alpine AS builder WORKDIR /go/src/ -RUN git config --global advice.detachedHead false && \ +RUN apk add --no-cache git curl && \ + git config --global advice.detachedHead false && \ TAG=$(curl --silent "https://api.github.com/repos/kovetskiy/mark/releases/latest" \ | grep '"tag_name"' | sed -E 's/.*"([^"]+)".*/\1/') && \ git clone --depth 1 --branch ${TAG} https://github.com/kovetskiy/mark.git @@ -27,10 +28,10 @@ FROM alpine:latest COPY --chmod=0755 --from=builder /go/mark /usr/bin/mark COPY --chmod=0755 entrypoint.sh /app/entrypoint.sh -RUN apk update && apk add -y --no-cache ca-certificates bash && \ +RUN apk update && apk add --no-cache ca-certificates bash && \ addgroup -S noroot && adduser -S -G noroot noroot -WORKDIR workspace +WORKDIR /workspace USER noroot ENTRYPOINT [ "/app/entrypoint.sh" ] \ No newline at end of file