android app
This commit is contained in:
17
saars/backend/Dockerfile
Normal file
17
saars/backend/Dockerfile
Normal file
@@ -0,0 +1,17 @@
|
||||
FROM python:3.11-slim
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
libpq-dev gcc \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
COPY requirements.txt .
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
COPY . .
|
||||
ENV FLASK_APP=run.py
|
||||
ENV PORT=8052
|
||||
EXPOSE 8052
|
||||
|
||||
CMD ["gunicorn", "--worker-class", "eventlet", "-w", "1", "-b", "0.0.0.0:8052", "run:app"]
|
||||
Reference in New Issue
Block a user