Removed step to upgrade NPM and install TS; improved rule ordering

pull/138/head
tycrek 2 years ago
parent ec745defde
commit 67a535b613
No known key found for this signature in database
GPG Key ID: 25D74F3943625263

@ -12,12 +12,6 @@ WORKDIR /opt/ass/
# Copy directory files (config.json, source files etc.)
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
RUN mkdir -p /opt/ass/uploads/thumbnails/ && \
mkdir -p /opt/ass/share/ && \
@ -30,5 +24,9 @@ RUN mkdir -p /opt/ass/uploads/thumbnails/ && \
# Set the user
USER node
# Install dependencies as rootless user
RUN npm i --save-dev && \
npm run build
# Start ass
CMD npm start

Loading…
Cancel
Save