diff options
author | Jesús <heckyel@hyperbola.info> | 2022-02-23 02:25:12 +0800 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2022-02-23 02:25:12 +0800 |
commit | d467fe99e8f38afd6966252438e54fed8fe6a75a (patch) | |
tree | 298aa7111b62ffbe8552b7c1a014868d361226a4 | |
parent | 1e26df2e4125b220180469b3a4b00d0363444dd3 (diff) | |
download | personal-site-d467fe99e8f38afd6966252438e54fed8fe6a75a.tar.lz personal-site-d467fe99e8f38afd6966252438e54fed8fe6a75a.tar.xz personal-site-d467fe99e8f38afd6966252438e54fed8fe6a75a.zip |
Update Dockerfile image
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | django/Dockerfile | 2 | ||||
-rw-r--r-- | django/entrypoint.sh | 1 |
3 files changed, 3 insertions, 1 deletions
@@ -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 |