/ src / storage / Dockerfile
Dockerfile
 1  FROM tusproject/tusd:v2.8
 2  
 3  USER root:root
 4  RUN apk add --no-cache --no-check-certificate libgcc libstdc++
 5  RUN install -d -m0700 -o 1111 /hooks
 6  RUN install -d -m0700 -o 1111 /data
 7  VOLUME "/data"
 8  
 9  USER 1111:1111
10  COPY --chown=1111:1111 --chmod=500 ./src/bun /bin/bun
11  COPY --chown=1111:1111 --chmod=500 ./src/onupload.ts /hooks/post-finish