Update Dockerfile image

This commit is contained in:
Jesús
2022-02-23 02:25:12 +08:00
parent 1e26df2e41
commit d467fe99e8
3 changed files with 3 additions and 1 deletions

View File

@@ -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

View File

@@ -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