-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from digorgonzola/django_upgrade
Django upgrade
- Loading branch information
Showing
8 changed files
with
38 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,14 @@ | ||
FROM python:3.7-alpine | ||
FROM python:3.10 | ||
LABEL maintainer="[email protected]" | ||
|
||
ARG USER_ID=1000 | ||
|
||
ENV PYTHONUNBUFFERED 1 | ||
ENV PIP_ROOT_USER_ACTION=ignore | ||
ENV PATH="/scripts:${PATH}" | ||
|
||
COPY ./requirements.txt /requirements.txt | ||
RUN apk add --update --no-cache postgresql-client jpeg-dev | ||
RUN apk add --update --no-cache --virtual .tmp-build-deps \ | ||
gcc libc-dev linux-headers postgresql-dev musl-dev zlib zlib-dev | ||
RUN pip install -r /requirements.txt | ||
RUN apk del .tmp-build-deps | ||
|
||
RUN mkdir /app | ||
WORKDIR /app | ||
|
@@ -19,7 +18,7 @@ RUN chmod +x /scripts/* | |
|
||
RUN mkdir -p /vol/web/media | ||
RUN mkdir -p /vol/web/static | ||
RUN adduser -D user | ||
RUN adduser --uid $USER_ID user | ||
RUN chown -R user:user /vol/ | ||
RUN chmod -R 755 /vol/web | ||
USER user | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
boto3>=1.12.0,<1.13.0 | ||
Django>=2.1.3,<2.2.0 | ||
djangorestframework>=3.9.0,<3.10.0 | ||
django-allow-cidr>=0.3.1,<0.4.0 | ||
django-storages>=1.9.1,<1.10.0 | ||
psycopg2>=2.7.5,<2.8.0 | ||
Pillow>=5.3.0,<5.4.0 | ||
uwsgi>=2.0.18,<2.1.0 | ||
flake8>=3.6.0,<3.7.0 | ||
uwsgi-readiness-check | ||
boto3>=1.29.4,<1.30.0 | ||
Django>=4.2.7,<4.3.0 | ||
djangorestframework>=3.14.0,<3.15.0 | ||
django-allow-cidr>=0.7.1,<0.8.0 | ||
django-storages>=1.14.2,<1.15.0 | ||
psycopg2>=2.9.9,<2.10.0 | ||
Pillow>=10.1.0,<10.2.0 | ||
uwsgi>=2.0.23,<2.1.0 | ||
flake8>=6.1.0,<6.2.0 | ||
uwsgi-readiness-check>=0.2.0,<0.3.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters