Update Dockerfile image

This commit is contained in:
Jesús 2022-02-23 02:25:12 +08:00
parent 1e26df2e41
commit d467fe99e8
No known key found for this signature in database
GPG Key ID: F6EE7BC59A315766
3 changed files with 3 additions and 1 deletions

1
.gitignore vendored
View File

@ -8,6 +8,7 @@ db.sqlite3
media/ media/
static/ static/
venv/ venv/
django/core/static/core/css/
### Sass ### ### Sass ###
.sass-cache/ .sass-cache/
*.css.map *.css.map

View File

@ -29,7 +29,7 @@ WORKDIR /srv/app
# Runtime Dependencies # Runtime Dependencies
RUN apk add py3-olefile brotli-libs libpng freetype libxcb \ RUN apk add py3-olefile brotli-libs libpng freetype libxcb \
libimagequant libjpeg-turbo lcms2 openjpeg libwebp zstd-libs \ 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 --from=builder /install /usr/local
COPY core/ /srv/app/core COPY core/ /srv/app/core

View File

@ -152,6 +152,7 @@ EMAIL_USE_TLS = ${EMAIL_USE_TLS:-True}
EOF EOF
fi fi
cd /srv/app/core/static/core && make
cd /srv/app || exit cd /srv/app || exit
/usr/local/bin/python3 manage.py makemigrations --no-input /usr/local/bin/python3 manage.py makemigrations --no-input
/usr/local/bin/python3 manage.py migrate --no-input /usr/local/bin/python3 manage.py migrate --no-input