From b25b90fd89538d1876d2f2fe84aa3408d2305ff4 Mon Sep 17 00:00:00 2001 From: tycrek Date: Wed, 13 Oct 2021 20:49:08 -0600 Subject: [PATCH] Improved Docker files --- Dockerfile | 11 +++++------ compose.yaml | 3 +-- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index dfb1148..006d47b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -# ass Dockerfile v0.1.0 +# ass Dockerfile v0.2.0 # authors: # - tycrek (https://tycrek.com/) # - Zusier (https://github.com/Zusier) @@ -12,11 +12,10 @@ WORKDIR /opt/ass/ # Copy directory files (config.json, source files etc.) COPY . ./ -# Update npm to at least v7.x.x -RUN npm i -g npm@>=7 - -# Install dependencies -RUN npm i +# Update npm to at least v7.x.x, +# then install dependencies +RUN npm i -g npm@>=7 typescript && \ + npm i --save-dev # Ensure these directories & files exist for compose volumes RUN mkdir -p /opt/ass/uploads/thumbnails/ && \ diff --git a/compose.yaml b/compose.yaml index 6ffaac5..5ecfe03 100644 --- a/compose.yaml +++ b/compose.yaml @@ -1,4 +1,4 @@ -# ass Docker compose.yaml v0.1.0 +# ass Docker compose.yaml v0.1.1 # authors: # - tycrek (https://tycrek.com/) # - Zusier (https://github.com/Zusier) @@ -11,7 +11,6 @@ services: restart: unless-stopped ports: - "40115:40115" - - "45375:45375" volumes: - ./uploads:/opt/ass/uploads - ./share:/opt/ass/share