Skip to content

Commit

Permalink
Removed pipenv in favour of poetry
Browse files Browse the repository at this point in the history
  • Loading branch information
katporks committed Nov 11, 2023
1 parent b62c193 commit dd37061
Show file tree
Hide file tree
Showing 7 changed files with 1,100 additions and 778 deletions.
65 changes: 0 additions & 65 deletions Dockerfile

This file was deleted.

7 changes: 4 additions & 3 deletions Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,17 @@ RUN apt-get update --yes --quiet && apt-get install --yes --quiet --no-install-r
&& rm -rf /var/lib/apt/lists/*

# Install pipenv
RUN pip install pipenv
RUN pip install poetry

# Install the application server.
RUN pip install "gunicorn==20.0.4"

# Copy Pipfile and Pipfile.lock
COPY Pipfile Pipfile.lock ./
COPY pyproject.toml poetry.lock* ./

# Install the project requirements.
RUN pipenv install --dev --system --deploy
RUN poetry config virtualenvs.create false \
&& poetry install --no-interaction --no-ansi

# Use /app folder as a directory where the source code is stored.
WORKDIR /app
Expand Down
11 changes: 6 additions & 5 deletions Dockerfile.prod
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,18 @@ RUN apt-get update --yes --quiet && apt-get install --yes --quiet --no-install-r
libwebp-dev \
&& rm -rf /var/lib/apt/lists/*

# Install pipenv
RUN pip install pipenv
# Install Poetry
RUN pip install poetry

# Install the application server.
RUN pip install "gunicorn==20.0.4"

# Copy Pipfile and Pipfile.lock
COPY Pipfile Pipfile.lock ./
# Copy pyproject.toml and poetry.lock
COPY pyproject.toml poetry.lock* ./

# Install the project requirements.
RUN pipenv install --system --deploy
RUN poetry config virtualenvs.create false \
&& poetry install --no-dev --no-interaction --no-ansi

# Use /app folder as a directory where the source code is stored.
WORKDIR /app
Expand Down
17 changes: 0 additions & 17 deletions Pipfile

This file was deleted.

Loading

0 comments on commit dd37061

Please sign in to comment.