[damned-lies/oscp] Move collectstatic to entrypoint
- From: Bartłomiej Piotrowski <bpiotrowski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [damned-lies/oscp] Move collectstatic to entrypoint
- Date: Sat, 7 Sep 2019 22:13:10 +0000 (UTC)
commit e1d301596f5f4776366e79456f5beabdf094d9b1
Author: Bartłomiej Piotrowski <bpiotrowski gnome org>
Date: Sun Sep 8 00:13:12 2019 +0200
Move collectstatic to entrypoint
Dockerfile | 3 +--
entrypoint.sh | 1 +
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/Dockerfile b/Dockerfile
index fc1e84b7..718724bd 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -24,8 +24,7 @@ USER l10n
SHELL ["/usr/bin/scl", "enable", "rh-python36"]
WORKDIR /l10n/damnedlies
RUN virtualenv /l10n/venv && \
- /l10n/venv/bin/pip install -r requirements.txt && \
- /l10n/venv/bin/python manage.py collectstatic
+ /l10n/venv/bin/pip install -r requirements.txt
ADD entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
diff --git a/entrypoint.sh b/entrypoint.sh
index 8e941e59..84dbcc49 100755
--- a/entrypoint.sh
+++ b/entrypoint.sh
@@ -8,4 +8,5 @@ sed -i "s/\$SECRET_KEY/$SECRET_KEY" /l10n/damnedlies/damnedlies/localsettings.py
sed -i "s/\$SENTRY_DSN/$SENTRY_DSN" /l10n/damnedlies/damnedlies/localsettings.py
sed -i "s/\$GITLAB_TOKEN/$GITLAB_TOKEN" /l10n/damnedlies/damnedlies/localsettings.py
+/l10n/venv/bin/python manage.py collectstatic
scl enable rh-python36 httpd24 "$@"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]