Commit 4706fe77 authored by Andreas Burbach's avatar Andreas Burbach
Browse files

update docker

parent 1b9b7f31
Pipeline #75031 failed with stages
in 3 minutes and 30 seconds
......@@ -5,11 +5,13 @@ services:
container_name: the_social_network
build: ./the_social_network
restart: always
command: sh -c "pipenv run python manage.py collectstatic --noinput && pipenv run uwsgi --socket=:9000 --module=the_social_network.wsgi:application --py-autoreload=1"
command: sh -c "poetry run python manage.py collectstatic --noinput && poetry run python manage.py runserver 0.0.0.0:9000"
volumes:
- ./the_social_network:/code
networks:
- webnet
ports:
- "9000:9000"
networks:
webnet:
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
......@@ -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"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment