Skip to content

Commit

Permalink
remove extra user switching from Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
danielfromearth committed Oct 31, 2023
1 parent 261f0e3 commit 6e812a1
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,14 @@ USER root
RUN mkdir -p /worker && chown dockeruser /worker
COPY pyproject.toml /worker
# COPY ../pyproject.toml /worker
USER dockeruser

WORKDIR /worker

# ENV PYTHONPATH=${PYTHONPATH}:${PWD}

COPY --chown=dockeruser $DIST_PATH $DIST_PATH
USER dockeruser
#RUN pip3 install --no-cache-dir --force --user --index-url https://pypi.org/simple/ --extra-index-url https://test.pypi.org/simple/ $SOURCE \
# && rm -rf $DIST_PATH

#install poetry as root
USER root
RUN poetry config virtualenvs.create false
RUN poetry install --only main

Expand Down

0 comments on commit 6e812a1

Please sign in to comment.