Update Dockerfile and example Dockerfile
Done to show non-root usage and more inbuilt utilities
This commit is contained in:
parent
8c14c9383e
commit
e19280151e
@ -22,4 +22,7 @@ RUN pip install -e .
|
|||||||
# Copy scripts
|
# Copy scripts
|
||||||
COPY ./scripts /app/scripts
|
COPY ./scripts /app/scripts
|
||||||
|
|
||||||
|
# Allow all users to execute minitor and scripts
|
||||||
|
RUN chmod -R 755 /app
|
||||||
|
|
||||||
ENTRYPOINT [ "python3", "-m", "minitor.main" ]
|
ENTRYPOINT [ "python3", "-m", "minitor.main" ]
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user