diff --git a/web/Dockerfile b/Dockerfile similarity index 80% rename from web/Dockerfile rename to Dockerfile index 6eb963d..6052a26 100644 --- a/web/Dockerfile +++ b/Dockerfile @@ -2,13 +2,16 @@ FROM python:3.9-slim RUN apt-get update && apt-get install --no-install-recommends -y build-essential libsasl2-dev libldap2-dev -ADD requirements.txt . +ADD web/requirements.txt . + # Downgrade setuptools to fix anyjson dependency RUN pip install setuptools~=57.5.0 && \ pip install -r requirements.txt -WORKDIR /usr/src -ADD . . +WORKDIR /usr/src/web + +ADD web /usr/src/web +ADD fetch /usr/src/fetch STOPSIGNAL SIGINT CMD ["uwsgi", "--http-socket", "0.0.0.0:5000", "--plugins", "python3", "--wsgi", "webapp.wsgi:app", "--threads", "10", "--master"] diff --git a/docker-compose.yml b/docker-compose.yml index 028d671..58ba3ad 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,11 +2,12 @@ version: "3.8" services: kasownik-web: - build: web + build: . ports: - 5000:5000 volumes: - - ./web:/usr/src + - ./web:/usr/src/web + - ./fetch:/usr/src/fetch environment: - SPACEAUTH_CONSUMER_KEY - SPACEAUTH_CONSUMER_SECRET diff --git a/web/requirements.txt b/web/requirements.txt index ea3d966..70f0524 100644 --- a/web/requirements.txt +++ b/web/requirements.txt @@ -1,7 +1,7 @@ amqp==1.4.6 astroid==1.6.1 backports.functools-lru-cache==1.5 -beautifulsoup4==4.3.2 +beautifulsoup4==4.12.3 billiard==3.3.0.19 blinker==1.4 cached-property==0.1.5 @@ -46,6 +46,7 @@ requests==2.24.0 requests-oauthlib==0.8.0 singledispatch==3.4.0.3 six==1.11.0 +soupsieve==2.5 SQLAlchemy==1.3.24 sqlparse==0.4.1 sqltap==0.3.5