|
FROM python:3.12.4
|
|
WORKDIR /myjsondb
|
|
|
|
RUN python3 -m pip install aiomysql fastapi cryptography -i https://pypi.tuna.tsinghua.edu.cn/simple
|
|
|
|
COPY ./src /myjsondb/src
|
|
COPY ./main.py /myjsondb
|
|
COPY ./config.toml.template /myjsondb
|
|
RUN mkdir /myjsondb/config
|
|
|
|
CMD python3 main.py
|