Create Dockerfile
Browse files- Dockerfile +22 -0
Dockerfile
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Docker image with Python
|
2 |
+
FROM python:3.10
|
3 |
+
|
4 |
+
# Environment variables
|
5 |
+
ENV PYTHONUNBUFFERED=1
|
6 |
+
ENV PYTHONIOENCODING=utf-8
|
7 |
+
|
8 |
+
# Set working directory
|
9 |
+
WORKDIR /app
|
10 |
+
|
11 |
+
# Install dependencies
|
12 |
+
COPY requirements.txt .
|
13 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
14 |
+
|
15 |
+
# Copy the app files
|
16 |
+
COPY . .
|
17 |
+
|
18 |
+
# Open the relevant port
|
19 |
+
EXPOSE 7860
|
20 |
+
|
21 |
+
# Run the app
|
22 |
+
CMD python3 app.py
|