chore: update `Dockerfile` and `compose.yaml` [skip ci:ts]

pull/243/head
Josh Moore 7 months ago
parent 121a7cd9dc
commit e5d627e8fc

@ -1,20 +1,10 @@
# ass Dockerfile v0.3.1
# ass Dockerfile v0.3.2
# authors:
# - tycrek <t@tycrek.com> (https://tycrek.com/)
# - Zusier <zusier@pm.me> (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

@ -1,4 +1,4 @@
# ass Docker compose.yaml v0.2.0
# ass Docker compose.yaml v0.3.0
# authors:
# - tycrek <t@tycrek.com> (https://tycrek.com/)
# - Zusier <zusier@pm.me> (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

Loading…
Cancel
Save