This commit is contained in:
parent
e31a66b448
commit
51b61d1dc2
17
Dockerfile
Normal file
17
Dockerfile
Normal file
@ -0,0 +1,17 @@
|
||||
# Use an Alpine-based image
|
||||
FROM python:3-alpine
|
||||
|
||||
# Set environment variables
|
||||
ENV FLASK_RUN_HOST=0.0.0.0
|
||||
|
||||
# Set the working directory in the container
|
||||
WORKDIR /app
|
||||
|
||||
# Copy the requirements file into the container
|
||||
COPY . /app
|
||||
|
||||
# Install dependencies
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
# Command to run the Flask application
|
||||
CMD ["gunicorn", "--bind", "0.0.0.0:8000", "ayta:create_app"]
|
Loading…
Reference in New Issue
Block a user