diff --git a/dockerfile b/dockerfile index a4a7b7b..58586eb 100644 --- a/dockerfile +++ b/dockerfile @@ -4,12 +4,12 @@ WORKDIR /usr/src/app RUN adduser --disabled-password --gecos '' appuser -RUN chown -R appuser /usr/src/app +COPY . . +RUN pip install --no-cache-dir flask requests cryptography -USER appuser -COPY . . +RUN chown -R appuser:appuser /usr/src/app -RUN pip install --no-cache-dir flask requests cryptography +USER appuser -CMD ["flask", "run", "--host=0.0.0.0"] +CMD ["python", "-m", "flask", "run", "--host=0.0.0.0"]