mirror of
https://github.com/TeamWiseFlow/wiseflow.git
synced 2025-02-02 18:28:46 +08:00
16 lines
432 B
Docker
16 lines
432 B
Docker
FROM python:3.10-slim
|
|
|
|
RUN apt-get update && \
|
|
apt-get install -yq tzdata && \
|
|
ln -fs /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
|
|
dpkg-reconfigure -f noninteractive tzdata
|
|
|
|
WORKDIR /app
|
|
|
|
COPY backend/requirements.txt requirements.txt
|
|
RUN pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
|
|
|
|
COPY backend ./
|
|
|
|
EXPOSE 7777
|
|
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7777"] |