From e5d627e8fc7f9df802c1973c78707b0285b193b5 Mon Sep 17 00:00:00 2001 From: Josh Moore Date: Sat, 14 Oct 2023 09:19:38 -0600 Subject: [PATCH] chore: update `Dockerfile` and `compose.yaml` [skip ci:ts] --- Dockerfile | 16 +++------------- compose.yaml | 9 ++++----- 2 files changed, 7 insertions(+), 18 deletions(-) diff --git a/Dockerfile b/Dockerfile index a733bc3..512997d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,20 +1,10 @@ -# ass Dockerfile v0.3.1 +# ass Dockerfile v0.3.2 # authors: # - tycrek (https://tycrek.com/) # - Zusier (https://github.com/Zusier) -# Node 18 image -FROM node:18.16.1 - -# Set working directory +FROM node:20.8.0 WORKDIR /opt/ass-src/ - -# Copy directory files (config.json, source files etc.) COPY . ./ - -# Install dependencies as rootless user -RUN npm i --save-dev && \ - npm run build - -# Start ass +RUN npm i --save-dev && npm run build CMD npm start diff --git a/compose.yaml b/compose.yaml index 44027ca..ad8dbc2 100644 --- a/compose.yaml +++ b/compose.yaml @@ -1,4 +1,4 @@ -# ass Docker compose.yaml v0.2.0 +# ass Docker compose.yaml v0.3.0 # authors: # - tycrek (https://tycrek.com/) # - Zusier (https://github.com/Zusier) @@ -16,9 +16,8 @@ services: - ./.ass-data:/opt/ass-src/.ass-data ports: - "40115:40115" - tmpfs: /tmp # temp files such as uploads are stored here + tmpfs: /tmp tty: true environment: - - NODE_ENV=production # for production - - ASS_ENV=docker # docker, local, production (not widely used yet) - - FORCE_COLOR=3 # force color output + - NODE_ENV=production + - FORCE_COLOR=3 # tlog color output