FROM ghcr.io/nsarrazin/serge:0.1.1 RUN mkdir -p /data/db RUN mkdir -p /usr/src/app/weights RUN chmod -R 777 /data/db RUN chmod -R 777 /usr/src/app/weights RUN chmod -R 777 /etc/redis RUN useradd -m -u 1000 user # Switch to the "user" user USER user