Initialized app and created ping endpoint

This commit is contained in:
ITQ
2024-02-27 19:01:54 +03:00
parent 1209dfe48d
commit 607f6de88c
19 changed files with 406 additions and 25 deletions
+11 -5
View File
@@ -2,11 +2,17 @@ FROM python:3.12.1-alpine3.19
WORKDIR /app
COPY requirements.txt requirements.txt
RUN pip3 install -r requirements.txt
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
ENV SERVER_PORT=8080
ENV DJANGO_DEBUG = False
RUN pip3 install --upgrade pip
COPY requirements/prod.txt .
RUN pip3 install -r prod.txt
WORKDIR /app
COPY . .
ENV SERVER_PORT=8080
CMD ["sh", "-c", "exec python3 -m flask run --host=0.0.0.0 --port=$SERVER_PORT"]
CMD ["sh", "-c", "cd pulse && exec python3 manage.py runserver 0.0.0.0:$SERVER_PORT"]