From 5c9b82f4886a334f08fdefe217fcfee35b6095e2 Mon Sep 17 00:00:00 2001 From: Jon Kafton <939376+jonkafton@users.noreply.github.com> Date: Wed, 7 Feb 2024 18:27:49 +0100 Subject: [PATCH] Default root user for web container --- Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index b540e901e6..d1796810ed 100644 --- a/Dockerfile +++ b/Dockerfile @@ -36,7 +36,7 @@ RUN chown -R mitodl:mitodl /src RUN mkdir ${VIRTUAL_ENV} && chown -R mitodl:mitodl ${VIRTUAL_ENV} ## Install poetry itself, and pre-create a venv with predictable name -USER mitodl +# USER mitodl RUN curl -sSL https://install.python-poetry.org \ | \ POETRY_VERSION=${POETRY_VERSION} \ @@ -47,14 +47,14 @@ RUN python3 -m venv $VIRTUAL_ENV RUN poetry install # Add project -USER root +# USER root COPY . /src WORKDIR /src -RUN chown -R mitodl:mitodl /src +# RUN chown -R mitodl:mitodl /src RUN apt-get clean && apt-get purge -USER mitodl +# USER mitodl EXPOSE 8063 ENV PORT 8063