SAE410_TP2/docker/docs/Dockerfile
2024-03-27 17:04:51 +01:00

26 lines
No EOL
414 B
Docker

FROM python:3-alpine
MAINTAINER Barnabé Dupont <contact@bdupont.tech>
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"]