FROM python:3-alpine MAINTAINER Barnabé Dupont LABEL version="1.0.0" RUN adduser -D worker USER worker WORKDIR /home/worker COPY --chown=worker:worker docker/docs/requirements.txt /home/worker RUN pip install --user -r requirements.txt WORKDIR /app COPY --chown=worker:worker app/docs.py /app/ COPY --chown=worker:worker swagger.yml /app/ EXPOSE 5000 CMD ["python3", "docs.py"]