add GID to Dockerfile

This commit is contained in:
AndreyIgorevich 2025-07-11 04:57:14 +07:00
parent d04107ca8b
commit 428926e745
2 changed files with 4 additions and 3 deletions

View File

@ -12,8 +12,9 @@ COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -o gateway ./cmd/gateway/main.go
FROM alpine:latest
RUN adduser -HD server
ARG HOST_SSL_GROUP_GID=1005
RUN addgroup -g ${HOST_SSL_GROUP_GID} yobble-ssl-cert
RUN adduser -D -s /bin/sh -G yobble-ssl-cert server
WORKDIR /app
@ -22,7 +23,7 @@ COPY ./configs /app/configs
COPY ./geodb /app/geodb
COPY ./.env /app/
RUN chown -R server:server /app
RUN chown -R server:yobble-ssl-cert /app
USER server
EXPOSE 5150

Binary file not shown.