Spaces:
Building
Building
Update Dockerfile
Browse files- Dockerfile +14 -45
Dockerfile
CHANGED
@@ -1,48 +1,4 @@
|
|
1 |
-
# ARG PYTHON_VERSION=3.12.1
|
2 |
-
# FROM python:${PYTHON_VERSION}-slim AS base
|
3 |
|
4 |
-
# RUN apt-get update && apt-get upgrade -y && \
|
5 |
-
# apt-get install -y pipenv && \
|
6 |
-
# apt-get install -y \
|
7 |
-
# fontconfig \
|
8 |
-
# fonts-dejavu \
|
9 |
-
# fonts-dejavu-core \
|
10 |
-
# fonts-dejavu-extra \
|
11 |
-
# fonts-liberation \
|
12 |
-
# fonts-noto \
|
13 |
-
# git && \
|
14 |
-
# rm -rf /var/lib/apt/lists/*
|
15 |
-
|
16 |
-
# RUN apt-get update && \
|
17 |
-
# apt-get install -y python3-pip-whl python3-setuptools-whl python3-wheel
|
18 |
-
|
19 |
-
# ENV PORT=7860
|
20 |
-
|
21 |
-
# ENV PIPENV_VENV_IN_PROJECT=1
|
22 |
-
|
23 |
-
# WORKDIR /app
|
24 |
-
|
25 |
-
# COPY requirements.txt .
|
26 |
-
# RUN python -m pip install --upgrade pip
|
27 |
-
# RUN python -m ensurepip --upgrade
|
28 |
-
# RUN python -m pip install --upgrade setuptools
|
29 |
-
|
30 |
-
# # RUN pipenv install pip==23.2.1
|
31 |
-
|
32 |
-
# RUN pipenv install
|
33 |
-
# # RUN pipenv install --dev --ignore-pipfile
|
34 |
-
|
35 |
-
# COPY . .
|
36 |
-
|
37 |
-
# EXPOSE 7860
|
38 |
-
|
39 |
-
# # RUN pipenv run pip install git+https://github.com/KuntilBogel/EnkaNetwork.py fastapi asyncio enkacard uvicorn requests
|
40 |
-
|
41 |
-
# # CMD pipenv run python update.py
|
42 |
-
# # CMD pipenv run python -m gunicorn main:app -b 0.0.0.0:7860 -w 8 --timeout 600
|
43 |
-
# # CMD ["sh", "-c", "pipenv run python -m gunicorn main:app -b 0.0.0.0:7860 -w 8 --timeout 600"]
|
44 |
-
|
45 |
-
# CMD [ "pipenv", "run", "python", "-m", "uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860", "--workers", "8", "--timeout-keep-alive", "600" ]
|
46 |
ARG PYTHON_VERSION=3.12.1
|
47 |
FROM python:${PYTHON_VERSION}-slim AS base
|
48 |
|
@@ -72,7 +28,20 @@ COPY . .
|
|
72 |
|
73 |
EXPOSE 7860
|
74 |
|
75 |
-
RUN pipenv run pip install
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
76 |
|
77 |
# CMD pipenv run python update.py
|
78 |
# CMD pipenv run python -m gunicorn main:app -b 0.0.0.0:7860 -w 8 --timeout 600
|
|
|
|
|
|
|
1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
ARG PYTHON_VERSION=3.12.1
|
3 |
FROM python:${PYTHON_VERSION}-slim AS base
|
4 |
|
|
|
28 |
|
29 |
EXPOSE 7860
|
30 |
|
31 |
+
RUN pipenv run pip install \
|
32 |
+
blinker==1.8.2 \
|
33 |
+
click==8.1.7 \
|
34 |
+
emoji==2.14.0 \
|
35 |
+
flask==3.0.3 \
|
36 |
+
itsdangerous==2.2.0 \
|
37 |
+
pillow==11.0.0 \
|
38 |
+
requests==2.32.3 \
|
39 |
+
urllib3==1.26.20 \
|
40 |
+
werkzeug==3.0.6 \
|
41 |
+
fastapi \
|
42 |
+
uvicorn \
|
43 |
+
git+https://github.com/jay3332/pilmoji@6ff436fe0a28362bd1d411863347face33e3b6ac
|
44 |
+
|
45 |
|
46 |
# CMD pipenv run python update.py
|
47 |
# CMD pipenv run python -m gunicorn main:app -b 0.0.0.0:7860 -w 8 --timeout 600
|