diff --git a/Dockerfile b/Dockerfile index dde0330..a9ed435 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,8 +11,10 @@ COPY --from=0 /web /code/web ENV FLASK_APP=app.py WORKDIR /code ENV FLASK_RUN_HOST=0.0.0.0 -RUN apk add --no-cache gcc musl-dev linux-headers +RUN apk add --no-cache gcc musl-dev linux-headers libpq-dev + EXPOSE 5000 # COPY . . +RUN pip install --upgrade pip RUN pip install -r /code/requirements.txt CMD ["flask", "run", "--debug"] diff --git a/compose.yaml b/compose.yaml index a7448a3..025cf3c 100644 --- a/compose.yaml +++ b/compose.yaml @@ -17,7 +17,10 @@ services: POSTGRES_USER: example POSTGRES_PASSWORD: example POSTGRES_DB: geotrack - + web: + build: . + ports: + - "8000:5000" adminer: image: adminer restart: always diff --git a/requirements.txt b/requirements.txt index 8ab6294..6cad5aa 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1 +1,18 @@ -flask \ No newline at end of file +blinker==1.9.0 +click==8.1.8 +colorama==0.4.6 +Flask==3.1.0 +Flask-Cors==5.0.0 +geographiclib==2.0 +geojson==3.2.0 +geopy==2.4.1 +gpxpy==1.6.2 +greenlet==3.1.1 +itsdangerous==2.2.0 +Jinja2==3.1.5 +MarkupSafe==3.0.2 +psycopg2==2.9.10 +python-dotenv==1.0.1 +SQLAlchemy==2.0.36 +typing_extensions==4.12.2 +Werkzeug==3.1.3 \ No newline at end of file