kopia lustrzana https://github.com/Aonrud/ila-microblog.pub
fix: Make UID:GID in Dockerfile align with docker-compose
* No obvious functional impact? But permission issues and a nameless user likely have side-effects.ila
rodzic
db58088fc2
commit
75e401bef5
|
@ -22,11 +22,11 @@ RUN poetry install --only main
|
|||
FROM python-base as production
|
||||
RUN apt-get update
|
||||
RUN apt-get install -y --no-install-recommends libjpeg-dev libxslt1-dev libxml2-dev libxslt-dev
|
||||
RUN groupadd --gid 1000 microblogpub \
|
||||
&& useradd --uid 1000 --gid microblogpub --shell /bin/bash microblogpub
|
||||
RUN groupadd --gid 1001 microblogpub \
|
||||
&& useradd --uid 1001 --gid microblogpub --shell /bin/bash microblogpub
|
||||
COPY --from=builder-base $PYSETUP_PATH $PYSETUP_PATH
|
||||
COPY . /app/
|
||||
RUN chown -R 1000:1000 /app
|
||||
RUN chown -R 1001:1001 /app
|
||||
USER microblogpub
|
||||
WORKDIR /app
|
||||
EXPOSE 8000
|
||||
|
|
Ładowanie…
Reference in New Issue