mirror of
https://github.com/Damillora/Altessimo
synced 2024-11-21 13:37:32 +00:00
More Dockerfile update
This commit is contained in:
parent
f02f7b826a
commit
4c618458c3
@ -3,13 +3,14 @@ FROM python:alpine
|
|||||||
ADD requirements.txt /app/requirements.txt
|
ADD requirements.txt /app/requirements.txt
|
||||||
RUN apk update \
|
RUN apk update \
|
||||||
&& apk add --virtual build-deps gcc python3-dev musl-dev \
|
&& apk add --virtual build-deps gcc python3-dev musl-dev \
|
||||||
&& apk add --no-cache mariadb-dev \
|
&& apk add --no-cache mariadb-dev jpeg-dev zlib-dev libpng-dev \
|
||||||
&& pip install --no-cache-dir -r /app/requirements.txt \
|
&& pip install --no-cache-dir -r /app/requirements.txt \
|
||||||
&& apk add --no-cache mariadb-connector-c \
|
|
||||||
&& apk del build-deps
|
&& apk del build-deps
|
||||||
ADD . /app
|
ADD . /app
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
RUN python manage.py collectstatic
|
||||||
|
|
||||||
EXPOSE 8000
|
EXPOSE 8000
|
||||||
|
|
||||||
ENV DJANGO_SETTINGS_MODULE=altessimo.production
|
ENV DJANGO_SETTINGS_MODULE=altessimo.production
|
||||||
|
@ -46,6 +46,7 @@ INSTALLED_APPS = [
|
|||||||
|
|
||||||
MIDDLEWARE = [
|
MIDDLEWARE = [
|
||||||
'django.middleware.security.SecurityMiddleware',
|
'django.middleware.security.SecurityMiddleware',
|
||||||
|
'whitenoise.middleware.WhiteNoiseMiddleware',
|
||||||
'django.contrib.sessions.middleware.SessionMiddleware',
|
'django.contrib.sessions.middleware.SessionMiddleware',
|
||||||
'django.middleware.common.CommonMiddleware',
|
'django.middleware.common.CommonMiddleware',
|
||||||
'django.middleware.csrf.CsrfViewMiddleware',
|
'django.middleware.csrf.CsrfViewMiddleware',
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
Django>=3.0,<4.0
|
Django>=3.0,<4.0
|
||||||
mysqlclient
|
mysqlclient
|
||||||
gunicorn
|
gunicorn
|
||||||
|
whitenoise
|
||||||
|
Pillow
|
||||||
|
Loading…
Reference in New Issue
Block a user