simplify dockerfile

This commit is contained in:
Alexander Bersenev
2020-02-13 15:08:01 +05:00
parent 8b26cc843d
commit c2414c3487

View File

@@ -1,8 +1,7 @@
FROM python:3.8-slim-buster
RUN apt-get update && apt-get install -y libcap2-bin \
&& setcap cap_net_bind_service=+ep /usr/local/bin/python3.8 \
&& apt-get purge -y libcap2-bin && apt-get autoremove -y && rm -rf /var/lib/apt/lists/*
RUN apt-get update && apt-get install -y libcap2-bin && rm -rf /var/lib/apt/lists/*
RUN setcap cap_net_bind_service=+ep /usr/local/bin/python3.8
RUN pip3 --no-cache-dir install cryptography uvloop