fix: always use numeric uid/gid in docker
This commit is contained in:
+3
-3
@@ -36,9 +36,9 @@ RUN apt-get update \
|
||||
&& groupadd --gid 1000 app \
|
||||
&& useradd --gid 1000 --no-log-init --create-home --uid 1000 app \
|
||||
&& mkdir -p /home/app/.cache/proxy_scraper_checker \
|
||||
&& chown app:app /home/app/.cache/proxy_scraper_checker
|
||||
&& chown 1000:1000 /home/app/.cache/proxy_scraper_checker
|
||||
|
||||
COPY --from=python-build-stage --chown=app:app --link /app/.venv /app/.venv
|
||||
COPY --from=python-build-stage --chown=1000:1000 --link /app/.venv /app/.venv
|
||||
|
||||
ENV PATH="/app/.venv/bin:$PATH"
|
||||
|
||||
@@ -46,7 +46,7 @@ ENV IS_DOCKER=1
|
||||
|
||||
USER app
|
||||
|
||||
COPY --chown=app:app . .
|
||||
COPY --chown=1000:1000 . .
|
||||
|
||||
ENTRYPOINT ["tini", "--"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user