FROM python:3.7-slim ENV PYTHONDONTWRITEBYTECODE=1 \ PYTHONUNBUFFERED=1 RUN apt-get update \ && apt-get install -y --no-install-recommends \ build-essential \ gcc \ libffi-dev \ libssl-dev \ redis-server \ ca-certificates \ && rm -rf /var/lib/apt/lists/* WORKDIR /app COPY . /app RUN pip install --no-cache-dir -r docs/modules_python37.txt EXPOSE 8443 CMD ["sh", "-c", "echo 'nameserver 1.1.1.1' > /etc/resolv.conf && echo 'nameserver 1.0.0.1' >> /etc/resolv.conf && redis-server --save \"\" --appendonly no & python bot_main.py"]