Skip to content

Commit

Permalink
fix dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
alserious committed Oct 12, 2023
1 parent 7fcb48c commit faf2cf7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ jobs:
docker load --input /opt/TelegramGPTBot/telegram_gpt_bot_image.tar
OPENAI_API_KEY=${{ secrets.OPENAI_API_KEY }} BOT_TOKEN=${{ secrets.BOT_TOKEN }} \
ADMIN_CHAT_ID=${{ secrets.ADMIN_CHAT_ID }} LOG_LEVEL=${{ secrets.LOG_LEVEL }} \
docker compose -f /opt/TelegramGPTBot/docker-compose.prod.yml up
IS_PROD=prod docker compose -f /opt/TelegramGPTBot/docker-compose.prod.yml up
9 changes: 5 additions & 4 deletions TelegramGPT/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,13 @@ ENV PIP_DISABLE_PIP_VERSION_CHECK=1
ENV PIP_DEFAULT_TIMEOUT=60
ENV PIP_ROOT_USER_ACTION=ignore

COPY telegramgpt/ /opt/app/
COPY poetry.lock /opt/app/poetry.lock

WORKDIR /opt/app/

RUN pip install poetry
RUN pip3 install poetry

COPY poetry.lock pyproject.toml /opt/app/

RUN poetry config virtualenvs.create false \
&& poetry install $(test "$IS_PROD" == prod && echo "--no-dev") --no-interaction --no-ansi

COPY telegramgpt/ /opt/app/

0 comments on commit faf2cf7

Please sign in to comment.