Skip to content

Fix missed setuptools in prod dockerfile #42

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion docker/prod/web/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ WORKDIR $APP_HOME
COPY --from=builder $WHEELS_PATH $WHEELS_PATH
COPY ./web/setup.cfg ./web/pyproject.toml ./
COPY ./web/src/requirements ./src/requirements
RUN pip install --no-build-isolation --no-index --find-links=$WHEELS_PATH --editable .[production] && \
RUN pip install --upgrade pip setuptools && \
pip install --no-build-isolation --no-index --find-links=$WHEELS_PATH --editable .[production] && \
rm -rf $WHEELS_PATH

COPY --chown=$USER:$USER ./docker/prod/web/entrypoint.sh /
Expand Down
7 changes: 5 additions & 2 deletions web/setup.cfg
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[metadata]
name = django-template
description = Django template in docker with docker-compose
description = Django template
author = Nazarii Romanchenko
url = https://github.com/bandirom/django-template
classifiers =
Environment :: Web Environment
Framework :: Django
Framework :: Django :: 4.1
Framework :: Django :: 4.2
Intended Audience :: Developers
License :: OSI Approved :: MIT License
Operating System :: OS Independent
Expand All @@ -15,9 +15,12 @@ classifiers =
Programming Language :: Python :: 3 :: Only
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Programming Language :: Python :: 3.12
Programming Language :: Python :: 3.13
Topic :: Internet :: WWW/HTTP
Topic :: Internet :: WWW/HTTP :: Dynamic Content
Topic :: Internet :: WWW/HTTP :: WSGI
Topic :: Internet :: WWW/HTTP :: ASGI

[options]
packages = find:
Expand Down