Skip to content
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

Reduce docker image size #165

Merged
merged 2 commits into from
Aug 23, 2023
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
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM ghcr.io/praekeltfoundation/docker-django-bootstrap-nw:py3.10-buster

COPY . /app
RUN pip install -e .
RUN pip install --no-cache-dir --extra-index-url https://download.pytorch.org/whl/cpu -e .

ENV DJANGO_SETTINGS_MODULE contentrepo.settings.production

Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,7 @@ The current LTS release is: 1.0
## Setting up locally
Run the following in a virtual environment
```bash
pip install -r requirements.txt
pip intsall -r requirements-dev.txt
pip install -e .[dev]
./manage.py migrate
./manage.py createsuperuser
./manage.py runserver
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ authors = [
description = "A CMS for messaging systems"
readme = "README.md"
requires-python = ">=3.10"
dynamic = ["dependencies"]
dynamic = ["dependencies", "optional-dependencies"]

[project.urls]
"Homepage" = "https://github.com/praekeltfoundation/contentrepo"
Expand All @@ -22,6 +22,7 @@ packages = ["contentrepo", "home", "menu", "search"]

[tool.setuptools.dynamic]
dependencies = {file = ["requirements.txt"]}
optional-dependencies.dev = {file = ["requirements-dev.txt"]}

[tool.black]
line-length = 88
Expand Down
Loading