Files
fastapi-websockets-testing/base_image/Dockerfile.python-3-8-fastapi
2023-09-07 08:20:38 +00:00

46 lines
1.3 KiB
Docker

FROM docker.sciocatti.com/python:3.8-slim
RUN python3 -m venv /venv
RUN . /venv/bin/activate && pip install --no-cache-dir \
anyio==3.6.1 \
asgiref==3.5.2 \
certifi==2022.6.15 \
charset-normalizer==2.0.12 \
click==8.1.3 \
dnspython==2.2.1 \
email-validator==1.2.1 \
fastapi==0.78.0 \
h11==0.13.0 \
httptools==0.4.0 \
idna==3.3 \
itsdangerous==2.1.2 \
Jinja2==3.1.2 \
MarkupSafe==2.1.1 \
orjson==3.7.3 \
pydantic==1.9.1 \
python-dateutil==2.8.2 \
python-dotenv==0.20.0 \
python-multipart==0.0.5 \
PyYAML==6.0 \
requests==2.28.0 \
six==1.16.0 \
sniffio==1.2.0 \
starlette==0.19.1 \
typing-extensions==4.2.0 \
ujson==5.3.0 \
urllib3==1.26.9 \
uvicorn==0.17.6 \
uvloop==0.16.0 \
watchgod==0.8.2 \
websockets==10.3 \
SQLAlchemy==1.4.42 \
PyMySQL==1.0.2 \
mysql-connector-python==8.0.31 \
xmltodict==0.13.0
CMD . /venv/bin/activate && exec python
# docker build -f Dockerfile.python-3-8-fastapi -t docker.sciocatti.com/python-3.8-fastapi:0.0.2 .
# docker run --name=bb_fastapi -d --restart=always -p 64000:15234 -v /root/home/iot/iot_bww_backend:/project docker.sciocatti.com/python-3.8-fastapi:0.0.1 /project/start.sh
# docker push docker.sciocatti.com/python-3.8-fastapi:0.0.2root@localhost:~/deployments/docker_images#