|
FROM fuqingxu/bbdown |
|
|
|
RUN apt update && apt-get install -y python3 python3-dev python3-pip |
|
|
|
RUN python3 -m pip install fastapi pydantic loguru --break-system-packages |
|
RUN python3 -m pip install requests python-multipart --break-system-packages |
|
RUN python3 -m pip install uvicorn --break-system-packages |
|
|
|
|
|
RUN useradd -m -u 1000 user |
|
RUN chown -R user:user /root |
|
USER user |
|
|
|
COPY ./docker_as_a_service /docker_as_a_service |
|
WORKDIR /docker_as_a_service |
|
|
|
|
|
|
|
ENTRYPOINT ["/bin/bash", "-c"] |
|
CMD ["python3 docker_as_a_service.py"] |
|
|