Skip to content

Commit

Permalink
Change Python version in Docker and seperate commands
Browse files Browse the repository at this point in the history
  • Loading branch information
tuduun committed Mar 21, 2024
1 parent 7650c8f commit fb4fdb3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Use an official lightweight Python image.
FROM python:3.10-slim
FROM python:3.11-slim

# Set the working directory in the Docker container to /app
WORKDIR /app
Expand All @@ -13,7 +13,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends gcc libpq-dev &

# Install Poetry, configure it to not create a virtual environment
# and install the project dependencies
RUN pip install --upgrade pip poetry && \
RUN pip install --upgrade pip && \
pip install poetry && \
poetry config virtualenvs.create false && \
poetry install --no-dev --no-interaction --no-ansi

Expand Down

0 comments on commit fb4fdb3

Please sign in to comment.