diff options
author | Kyomotoi <[email protected]> | 2022-03-18 22:31:57 +0800 |
---|---|---|
committer | GitHub <[email protected]> | 2022-03-18 22:31:57 +0800 |
commit | 913f1763e88645174a2acd8898d5eef0f37ef978 (patch) | |
tree | 72980f56dbd285beed0216f0a834e2ead91f1583 /Dockerfile | |
parent | acc35d53a4190d557ea4995efe836dd771a180a0 (diff) | |
parent | eebca75c86dfdf40f429319d58f5c5e30bd9285c (diff) | |
download | ATRI-913f1763e88645174a2acd8898d5eef0f37ef978.tar.gz ATRI-913f1763e88645174a2acd8898d5eef0f37ef978.tar.bz2 ATRI-913f1763e88645174a2acd8898d5eef0f37ef978.zip |
Merge pull request #49 from cvb011/main
添加了新的 docker 部署方案
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..6f3f8a2 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,14 @@ +FROM flyingjoe/uvicorn-gunicorn-fastapi:python3.9-slim + +WORKDIR /app + +ENV PATH="${PATH}:/root/.local/bin" + +COPY ./ /app/ + +RUN /usr/local/bin/python -m pip install --no-cache-dir --upgrade --quiet pip \ + && pip install --no-cache-dir --upgrade --quiet -r requirements.txt + +VOLUME /app/accounts /app/data + +CMD python3 main.py
\ No newline at end of file |