Commit e9aa9256 by xuxingxing

tmpcode

parent 05008be5
Showing with 2 additions and 3 deletions
FROM registry.cn-shenzhen.aliyuncs.com/xcxiaoan/python:3.11.4-slim FROM registry.cn-shenzhen.aliyuncs.com/xcxiaoan/python:3.11.4-slim
RUN rm -rf /admin/app/* RUN rm -rf /admin/app/*
# Set the working directory in the container # Set the working directory in the container
...@@ -9,11 +10,9 @@ COPY . /admin/app ...@@ -9,11 +10,9 @@ COPY . /admin/app
RUN pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple -r /admin/app/requirements.txt RUN pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple -r /admin/app/requirements.txt
# Make port 80 available to the world outside this container # Make port 5001 available to the world outside this container
EXPOSE 5001 EXPOSE 5001
#CMD ["python3","/admin/app/app.py"]
#CMD ["/bin/bash", "-c", "python3 /admin/app/app.py"]
ENTRYPOINT ["python3", "/admin/app/app.py"] ENTRYPOINT ["python3", "/admin/app/app.py"]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment