Compare commits

...

2 Commits

Author SHA1 Message Date
palid 1d6adc9b64
fix: correctly lock all dependencies 2024-02-01 12:36:55 +01:00
palid 0f45ab9cd1
fix: run app as spejstore user, not root 2024-02-01 12:36:39 +01:00
3 changed files with 13 additions and 5 deletions

View File

@ -45,5 +45,6 @@
"yzhang.markdown-all-in-one"
]
}
}
},
"containerUser": "spejstore"
}

View File

@ -12,6 +12,7 @@ ADD requirements.txt /code/
RUN pip install --no-cache-dir -r requirements.txt
ADD . /code/
RUN python -m pip install gunicorn
RUN groupadd --gid 1000 spejstore && useradd --uid 1000 --gid 1000 --home /code --shell /bin/bash spejstore
USER spejstore
CMD bash -c "python manage.py collectstatic --no-input --clear && python manage.py migrate && gunicorn --workers 1 --threads 4 -b 0.0.0.0:8000 --capture-output --error-logfile - --access-logfile - spejstore.wsgi:application"

View File

@ -1,4 +1,6 @@
asgiref==3.7.2
boto3==1.34.32
botocore==1.34.32
certifi==2023.5.7
cffi==1.15.1
chardet==5.1.0
@ -12,12 +14,13 @@ django-appconf==1.0.5
django-hstore==1.4.2
django-markdown2==0.3.1
django-select2==8.1.2
django-storages[s3]==1.14.2
# Django-tree
https://github.com/Palid/django-tree/archive/master.zip
django-storages==1.14.2
django-tree @ https://github.com/Palid/django-tree/archive/439e9a867e789b58f0c37e34e8ceb85ce1b806dc.zip#sha256=044e6766f4993512404492d7ec76949ca6b9ed44c88619ecc3a4e5339aa27b71
djangorestframework==3.14.0
docopt==0.6.2
gunicorn==21.2.0
idna==3.4
jmespath==1.0.1
markdown2==2.4.9
oauthlib==3.2.2
packaging==23.1
@ -25,10 +28,13 @@ Pillow==10.0.0
psycopg2==2.9.6
pycparser==2.21
PyJWT==2.7.0
python-dateutil==2.8.2
python3-openid==3.2.0
pytz==2023.3
requests==2.31.0
requests-oauthlib==1.3.1
s3transfer==0.10.0
six==1.16.0
social-auth-app-django==5.2.0
social-auth-core==4.4.2
sqlparse==0.4.4