Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Marc Feger
The Social Network
Commits
4706fe77
Commit
4706fe77
authored
Nov 23, 2021
by
Andreas Burbach
Browse files
update docker
parent
1b9b7f31
Pipeline
#75031
failed with stages
in 3 minutes and 30 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
docker-compose.yml
View file @
4706fe77
...
...
@@ -5,11 +5,13 @@ services:
container_name
:
the_social_network
build
:
./the_social_network
restart
:
always
command
:
sh -c "p
ipenv
run python manage.py collectstatic --noinput && p
ipenv run uwsgi --socket=:9000 --module=the_social_network.wsgi:application --py-autoreload=1
"
command
:
sh -c "p
oetry
run python manage.py collectstatic --noinput && p
oetry run python manage.py runserver 0.0.0.0:9000
"
volumes
:
-
./the_social_network:/code
networks
:
-
webnet
ports
:
-
"
9000:9000"
networks
:
webnet
:
the_social_network/Dockerfile
0 → 100644
View file @
4706fe77
FROM
python:3.9-alpine
ENV
PYTHONUNBUFFERED 1
RUN
apk update
&&
\
apk add
--virtual
build-deps curl gcc python3-dev musl-dev openssl-dev libffi-dev build-base linux-headers
&&
\
apk add jpeg-dev zlib-dev libjpeg pcre-dev
WORKDIR
/code
COPY
pyproject.toml ./
RUN
pip
install
poetry
RUN
poetry
install
COPY
. ./
RUN
apk del build-deps
the_social_network/pyproject.toml
View file @
4706fe77
...
...
@@ -10,7 +10,7 @@ homepage = "https://gitlab.cs.uni-duesseldorf.de/feger/the-social-network"
[tool.poetry.dependencies]
python
=
"^3.
8
"
python
=
"^3.
9
"
Django
=
"^3.2.9"
djangorestframework
=
"^3.12.4"
Pillow
=
"^8.4.0"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment