aboutsummaryrefslogtreecommitdiffstats
path: root/static-builds/Dockerfile
diff options
context:
space:
mode:
authorGravatar Hassan Abouelela <[email protected]>2021-10-10 14:42:40 +0300
committerGravatar Hassan Abouelela <[email protected]>2021-10-10 14:52:22 +0300
commit79259eb856ea2847a61c44dee4eb03f557a7e4f1 (patch)
treed54cd0b3706a4d057763e256aab66df0161642af /static-builds/Dockerfile
parentFixes Caching On Docker Build (diff)
Merges Dockerfiles
Merges the normal dockerfile with the static build one to reduce duplication. Signed-off-by: Hassan Abouelela <[email protected]>
Diffstat (limited to 'static-builds/Dockerfile')
-rw-r--r--static-builds/Dockerfile28
1 files changed, 0 insertions, 28 deletions
diff --git a/static-builds/Dockerfile b/static-builds/Dockerfile
deleted file mode 100644
index a70165a0..00000000
--- a/static-builds/Dockerfile
+++ /dev/null
@@ -1,28 +0,0 @@
-# Build a static preview of the site
-FROM --platform=linux/amd64 python:3.9-slim-buster
-
-# Allow service to handle stops gracefully
-STOPSIGNAL SIGQUIT
-
-# Set pip to have cleaner logs and no saved cache
-ENV PIP_NO_CACHE_DIR=false \
- POETRY_VIRTUALENVS_CREATE=false
-
-# Install poetry
-RUN pip install -U poetry
-
-# Copy the project files into working directory
-WORKDIR /app
-
-# Install project dependencies
-COPY pyproject.toml poetry.lock ./
-RUN poetry install --no-dev
-
-ARG git_sha="development"
-ENV GIT_SHA=$git_sha
-ENV PARENT_HOST=replace_me.host
-
-# Copy the source code in last to optimize rebuilding the image
-COPY . .
-
-RUN SECRET_KEY=dummy_value python manage.py distill-local build --traceback --force --collectstatic