lol
This commit is contained in:
@@ -11,6 +11,7 @@ WORKDIR /app
|
||||
# Install dependencies
|
||||
COPY requirements.txt .
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
RUN pip install gunicorn
|
||||
|
||||
# Copy project files
|
||||
COPY . .
|
||||
@@ -22,5 +23,5 @@ EXPOSE 5000
|
||||
ENV FLASK_APP=app.py
|
||||
ENV FLASK_ENV=production
|
||||
|
||||
# Run the application
|
||||
CMD ["flask", "run", "--host=0.0.0.0"]
|
||||
# Run the application with gunicorn
|
||||
CMD ["gunicorn", "--bind", "0.0.0.0:5000", "app:app"]
|
||||
Reference in New Issue
Block a user