diff --git a/Dockerfile b/Dockerfile index 91ec083e3c..03c329ba33 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,12 @@ FROM alpine:3.13 +ARG USER=optimus COPY optimus /usr/bin/optimus +WORKDIR /app +RUN adduser -D $USER +RUN chown -R $USER:$USER /app + +USER $USER EXPOSE 8080 CMD ["optimus"] \ No newline at end of file