Update Dockerfile and example Dockerfile

Done to show non-root usage and more inbuilt utilities
This commit is contained in:
IamTheFij 2019-08-01 13:54:52 -07:00
parent 8c14c9383e
commit e19280151e
2 changed files with 9 additions and 2 deletions

View File

@ -22,4 +22,7 @@ RUN pip install -e .
# Copy scripts
COPY ./scripts /app/scripts
# Allow all users to execute minitor and scripts
RUN chmod -R 755 /app
ENTRYPOINT [ "python3", "-m", "minitor.main" ]

View File

@ -1,3 +1,7 @@
FROM minitor-dev
FROM minitor-dev-linux-amd64
RUN apt-get update && apt-get install -y jq curl && apt-get clean
RUN apk add bash jq curl
RUN addgroup -S minitor && adduser -S minitor -G minitor
USER minitor