aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2022-02-23 02:25:12 +0800
committerJesús <heckyel@hyperbola.info>2022-02-23 02:25:12 +0800
commitd467fe99e8f38afd6966252438e54fed8fe6a75a (patch)
tree298aa7111b62ffbe8552b7c1a014868d361226a4
parent1e26df2e4125b220180469b3a4b00d0363444dd3 (diff)
downloadpersonal-site-d467fe99e8f38afd6966252438e54fed8fe6a75a.tar.lz
personal-site-d467fe99e8f38afd6966252438e54fed8fe6a75a.tar.xz
personal-site-d467fe99e8f38afd6966252438e54fed8fe6a75a.zip
Update Dockerfile image
-rw-r--r--.gitignore1
-rw-r--r--django/Dockerfile2
-rw-r--r--django/entrypoint.sh1
3 files changed, 3 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
index ef3defd..65b056e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -8,6 +8,7 @@ db.sqlite3
media/
static/
venv/
+django/core/static/core/css/
### Sass ###
.sass-cache/
*.css.map
diff --git a/django/Dockerfile b/django/Dockerfile
index 3c36613..6d5fdd4 100644
--- a/django/Dockerfile
+++ b/django/Dockerfile
@@ -29,7 +29,7 @@ WORKDIR /srv/app
# Runtime Dependencies
RUN apk add py3-olefile brotli-libs libpng freetype libxcb \
libimagequant libjpeg-turbo lcms2 openjpeg libwebp zstd-libs \
- tiff libxau libmd libbsd libxdmcp libpq nginx
+ tiff libxau libmd libbsd libxdmcp libpq sassc nginx
COPY --from=builder /install /usr/local
COPY core/ /srv/app/core
diff --git a/django/entrypoint.sh b/django/entrypoint.sh
index 12edeca..425bac1 100644
--- a/django/entrypoint.sh
+++ b/django/entrypoint.sh
@@ -152,6 +152,7 @@ EMAIL_USE_TLS = ${EMAIL_USE_TLS:-True}
EOF
fi
+cd /srv/app/core/static/core && make
cd /srv/app || exit
/usr/local/bin/python3 manage.py makemigrations --no-input
/usr/local/bin/python3 manage.py migrate --no-input