dongwook-chan
commited on
Commit
·
1acea91
1
Parent(s):
88e2bfd
Update
Browse files- Dockerfile +4 -7
- requirements.txt +0 -6
Dockerfile
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
# Use an official Python runtime as a parent image
|
2 |
-
FROM python:3.
|
3 |
|
4 |
# Set the working directory to /app
|
5 |
WORKDIR /app
|
@@ -8,13 +8,10 @@ WORKDIR /app
|
|
8 |
COPY . /app
|
9 |
|
10 |
# Install any needed packages specified in requirements.txt
|
11 |
-
RUN pip install -r requirements.txt
|
12 |
|
13 |
# Make port 7860 available to the world outside this container
|
14 |
EXPOSE 7860
|
15 |
|
16 |
-
#
|
17 |
-
|
18 |
-
|
19 |
-
# Run app.py when the container launches
|
20 |
-
CMD ["gunicorn", "--bind", "0.0.0.0:7860", "app:app"]
|
|
|
1 |
# Use an official Python runtime as a parent image
|
2 |
+
FROM python:3.9-slim
|
3 |
|
4 |
# Set the working directory to /app
|
5 |
WORKDIR /app
|
|
|
8 |
COPY . /app
|
9 |
|
10 |
# Install any needed packages specified in requirements.txt
|
11 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
12 |
|
13 |
# Make port 7860 available to the world outside this container
|
14 |
EXPOSE 7860
|
15 |
|
16 |
+
# Run the Flask app directly using Python
|
17 |
+
CMD ["python", "app.py"]
|
|
|
|
|
|
requirements.txt
CHANGED
@@ -1,8 +1,2 @@
|
|
1 |
-
pre-commit
|
2 |
-
black
|
3 |
-
aiohttp
|
4 |
-
black[d]
|
5 |
-
pytest
|
6 |
-
mypy
|
7 |
flask
|
8 |
Flask-Session
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
flask
|
2 |
Flask-Session
|