fix dockerfile

This commit is contained in:
Yann Verry 2021-05-29 23:31:56 +02:00
parent 9af0739d80
commit 1d9b6c3cd1
Signed by: yann
GPG key ID: 19754E8692B8416C

View file

@ -5,10 +5,11 @@
FROM python:alpine FROM python:alpine
MAINTAINER Yann Verry <docker@verry.org> MAINTAINER Yann Verry <docker@verry.org>
WORKDIR . WORKDIR /app
COPY Pipfile Pipfile.lock main.py /app/
RUN pip install --no-cache-dir pipenv && \ RUN pip install --no-cache-dir pipenv && \
pipenv install --system --deploy pipenv install --system --deploy
USER nobody USER nobody
CMD python /routeros-restapi/main.py CMD python /app/main.py