mirror of
https://github.com/Balshgit/gpt_chat_bot.git
synced 2025-12-15 16:10:39 +03:00
add root option for poetry to Dockerfile (#10)
This commit is contained in:
@@ -21,6 +21,7 @@ RUN printf "================ Start build base service. with USER: ${USER} ======
|
||||
curl \
|
||||
git \
|
||||
nano \
|
||||
ffmpeg \
|
||||
# Cleaning cache:
|
||||
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false \
|
||||
&& apt-get clean -y && rm -rf /var/lib/apt/lists/*
|
||||
@@ -35,10 +36,10 @@ RUN if [ "$USER" != "root" ]; then \
|
||||
|
||||
COPY --chown=${USER}:${USER} ../poetry.lock ../pyproject.toml /app/
|
||||
|
||||
RUN pip install --upgrade pip && pip install poetry==$POETRY_VERSION && pip install ffmpeg
|
||||
RUN pip install --upgrade pip && pip install poetry==$POETRY_VERSION
|
||||
RUN poetry config virtualenvs.in-project true && \
|
||||
poetry config virtualenvs.create true && \
|
||||
poetry install --only main --no-interaction --no-ansi && \
|
||||
poetry install $(if [ "$USER" != "root" ]; then echo "--only main"; fi) --no-interaction --no-ansi && \
|
||||
rm -rf $POETRY_CACHE_DIR
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user