add GID to Dockerfile
This commit is contained in:
parent
d04107ca8b
commit
428926e745
@ -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.
Loading…
x
Reference in New Issue
Block a user