new file: Dockerfile
new file: requirements.txt
This commit is contained in:
23
Dockerfile
Normal file
23
Dockerfile
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
FROM python:3.11-slim
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
# Install dependencies
|
||||||
|
COPY requirements.txt .
|
||||||
|
RUN pip install --no-cache-dir -r requirements.txt
|
||||||
|
|
||||||
|
# Copy source code
|
||||||
|
COPY app.py .
|
||||||
|
COPY templates/ ./templates/
|
||||||
|
#COPY static/ ./static/
|
||||||
|
#COPY .env .
|
||||||
|
|
||||||
|
# Create the folder structure for the volume mounts
|
||||||
|
RUN mkdir -p /app/static/cache
|
||||||
|
|
||||||
|
EXPOSE 5000
|
||||||
|
|
||||||
|
# Run with unbuffered output so you can actually see the logs in Portainer
|
||||||
|
ENV PYTHONUNBUFFERED=1
|
||||||
|
|
||||||
|
CMD ["python", "app.py"]
|
||||||
6
requirements.txt
Normal file
6
requirements.txt
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
Flask==3.1.3
|
||||||
|
Flask-Login==0.6.3
|
||||||
|
Flask-SocketIO==5.6.1
|
||||||
|
requests==2.32.5
|
||||||
|
eventlet==0.36.1
|
||||||
|
python-dotenv==1.2.2
|
||||||
Reference in New Issue
Block a user