FROM python:3.7-slim LABEL maintainer="Jan Vales " COPY . /app/ WORKDIR /app RUN ["pip", "install", "-r", "requirements.txt"] # Container must run as root. :/ #RUN ["useradd", "--no-create-home", "failover"] #USER failover:failover ENTRYPOINT ["python3.7", "-u", "./main.py"]