|
|
@ -12,12 +12,6 @@ WORKDIR /opt/ass/
|
|
|
|
# Copy directory files (config.json, source files etc.)
|
|
|
|
# Copy directory files (config.json, source files etc.)
|
|
|
|
COPY . ./
|
|
|
|
COPY . ./
|
|
|
|
|
|
|
|
|
|
|
|
# Update npm to at least npm 8,
|
|
|
|
|
|
|
|
# then install dependencies
|
|
|
|
|
|
|
|
RUN npm i -g npm@8 typescript && \
|
|
|
|
|
|
|
|
npm i --save-dev && \
|
|
|
|
|
|
|
|
npm run build
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Ensure these directories & files exist for compose volumes
|
|
|
|
# Ensure these directories & files exist for compose volumes
|
|
|
|
RUN mkdir -p /opt/ass/uploads/thumbnails/ && \
|
|
|
|
RUN mkdir -p /opt/ass/uploads/thumbnails/ && \
|
|
|
|
mkdir -p /opt/ass/share/ && \
|
|
|
|
mkdir -p /opt/ass/share/ && \
|
|
|
@ -30,5 +24,9 @@ RUN mkdir -p /opt/ass/uploads/thumbnails/ && \
|
|
|
|
# Set the user
|
|
|
|
# Set the user
|
|
|
|
USER node
|
|
|
|
USER node
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Install dependencies as rootless user
|
|
|
|
|
|
|
|
RUN npm i --save-dev && \
|
|
|
|
|
|
|
|
npm run build
|
|
|
|
|
|
|
|
|
|
|
|
# Start ass
|
|
|
|
# Start ass
|
|
|
|
CMD npm start
|
|
|
|
CMD npm start
|
|
|
|