diff --git a/Dockerfile b/Dockerfile index 6ee154f..e68dad9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -32,7 +32,7 @@ COPY config.template /app/config.ini RUN chmod +x /app/script/docker/entrypoint.sh # Add a non-root user and switch to it -RUN useradd -m appuser && usermod -a -G dialout appuser -USER appuser +# RUN useradd -m appuser && usermod -a -G dialout appuser +# USER appuser ENTRYPOINT ["/bin/bash", "/app/script/docker/entrypoint.sh"] diff --git a/script/docker/entrypoint.sh b/script/docker/entrypoint.sh index 13c9840..ede70e3 100644 --- a/script/docker/entrypoint.sh +++ b/script/docker/entrypoint.sh @@ -1,13 +1,4 @@ #!/bin/bash -# if /app/logs is not writable, change ownership -if [ -w /app/logs ]; then - chown -R appuser:appuser /app/logs -fi -# if /app/data is not writable, change ownership -if [ -w /app/data ]; then - chown -R appuser:appuser /app/data -fi - # Run the bot as appuser (if you want to drop privileges) exec python /app/mesh_bot.py