Skip to content

Commit f826cdb

Browse files
committed
添加Dockerfile
1 parent 9387449 commit f826cdb

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

Dockerfile

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
FROM python:3.12-alpine
2+
3+
WORKDIR /app
4+
ADD main.py /app
5+
ADD requirements.txt /app
6+
7+
RUN pip install -r requirements.txt
8+
RUN rm requirements.txt
9+
10+
CMD python -u /app/main.py

requirements.txt

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
toml
2-
requests
2+
requests
3+
diskcache
4+
Flask

0 commit comments

Comments
 (0)