Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +13 -0
Dockerfile
CHANGED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM python:3.10
|
2 |
+
|
3 |
+
WORKDIR /app
|
4 |
+
|
5 |
+
COPY . /app
|
6 |
+
|
7 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
8 |
+
|
9 |
+
RUN sed -i 's|Powered by <a href="https://www.pyweb.io/" target="_blank">PyWebIO</a>|Powered by <a href="https://www.anye.xyz/" target="_blank">Anye</a>|g' /usr/local/lib/python3.10/site-packages/pywebio/platform/tpl/index.html
|
10 |
+
|
11 |
+
EXPOSE 8080
|
12 |
+
|
13 |
+
CMD ["python", "/app/main.py"]
|