diff --git a/Dockerfile b/Dockerfile index ed72ebb..8fe74a5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/geodb/GeoLite2-Country.mmdb b/geodb/GeoLite2-Country.mmdb deleted file mode 100644 index f9c374d..0000000 Binary files a/geodb/GeoLite2-Country.mmdb and /dev/null differ