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

pull/243/head
Josh Moore 1 year ago
parent 121a7cd9dc
commit e5d627e8fc

@ -1,20 +1,10 @@
# ass Dockerfile v0.3.1 # ass Dockerfile v0.3.2
# authors: # authors:
# - tycrek <t@tycrek.com> (https://tycrek.com/) # - tycrek <t@tycrek.com> (https://tycrek.com/)
# - Zusier <zusier@pm.me> (https://github.com/Zusier) # - Zusier <zusier@pm.me> (https://github.com/Zusier)
# Node 18 image FROM node:20.8.0
FROM node:18.16.1
# Set working directory
WORKDIR /opt/ass-src/ WORKDIR /opt/ass-src/
# Copy directory files (config.json, source files etc.)
COPY . ./ COPY . ./
RUN npm i --save-dev && npm run build
# Install dependencies as rootless user
RUN npm i --save-dev && \
npm run build
# Start ass
CMD npm start CMD npm start

@ -1,4 +1,4 @@
# ass Docker compose.yaml v0.2.0 # ass Docker compose.yaml v0.3.0
# authors: # authors:
# - tycrek <t@tycrek.com> (https://tycrek.com/) # - tycrek <t@tycrek.com> (https://tycrek.com/)
# - Zusier <zusier@pm.me> (https://github.com/Zusier) # - Zusier <zusier@pm.me> (https://github.com/Zusier)
@ -16,9 +16,8 @@ services:
- ./.ass-data:/opt/ass-src/.ass-data - ./.ass-data:/opt/ass-src/.ass-data
ports: ports:
- "40115:40115" - "40115:40115"
tmpfs: /tmp # temp files such as uploads are stored here tmpfs: /tmp
tty: true tty: true
environment: environment:
- NODE_ENV=production # for production - NODE_ENV=production
- ASS_ENV=docker # docker, local, production (not widely used yet) - FORCE_COLOR=3 # tlog color output
- FORCE_COLOR=3 # force color output

Loading…
Cancel
Save