Initialized app and created ping endpoint
This commit is contained in:
+11
-5
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user