Skip to content

Commit

Permalink
Default root user for web container
Browse files Browse the repository at this point in the history
  • Loading branch information
jonkafton committed Feb 7, 2024
1 parent 83007a3 commit 5c9b82f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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} \
Expand All @@ -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
Expand Down

0 comments on commit 5c9b82f

Please sign in to comment.