Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
howardt12345 committed Sep 17, 2024
1 parent 89b6447 commit 036832b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Use an official Python runtime as a parent image
FROM python:3.11-slim
FROM python:3.12-slim

# Install git and curl
RUN apt-get update && apt-get install -y git curl
Expand Down
13 changes: 6 additions & 7 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,14 @@ else
git pull
fi

# Create a virtual environment with venv in the app directory
python3 -m venv /app/.venv

# Activate the virtual environment
source /app/.venv/bin/activate
# Set Poetry to create the virtual environment inside the project directory
poetry config virtualenvs.in-project true

# Install dependencies using Poetry
poetry config virtualenvs.create false
poetry install --no-interaction --no-ansi

# Activate the virtual environment
source /app/.venv/bin/activate

# Run the command passed to docker run
exec "$@"
exec "$@"

0 comments on commit 036832b

Please sign in to comment.