# ass Dockerfile v0.2.0 # authors: # - tycrek (https://tycrek.com/) # - Zusier (https://github.com/Zusier) # Node 16 image FROM node:16.14.0 # Set working directory WORKDIR /opt/ass/ # Copy directory files (config.json, source files etc.) COPY . ./ # Ensure these directories & files exist for compose volumes RUN mkdir -p /opt/ass/uploads/thumbnails/ && \ mkdir -p /opt/ass/share/ && \ touch /opt/ass/config.json && \ touch /opt/ass/auth.json && \ touch /opt/ass/data.json && \ # Set permissions for rootless user chown -R node:node /opt/ass # Set the user USER node # Install dependencies as rootless user RUN npm i --save-dev && \ npm run build # Start ass CMD npm start