mirror of
https://github.com/Anrab35/SAE410_TP2.git
synced 2024-10-21 21:26:09 +02:00
26 lines
No EOL
414 B
Docker
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"] |