feat: updated Dockerfile & compose.yaml for 0.15.0 (maybe)

pull/243/head
Josh Moore 11 months ago
parent a518f45b87
commit a975e2964e

@ -3,22 +3,15 @@
# - tycrek <t@tycrek.com> (https://tycrek.com/)
# - Zusier <zusier@pm.me> (https://github.com/Zusier)
# Node 16 image
FROM node:16.19.1
# Node 18 image
FROM node:18.16.1
# Set working directory
WORKDIR /opt/ass/
WORKDIR /opt/ass-src/
# Copy directory files (config.json, source files etc.)
COPY . ./
# Ensure these directories & files exist for compose volumes
RUN mkdir -p /opt/ass/uploads/thumbnails/ && \
mkdir -p /opt/ass/share/ && \
touch /opt/ass/config.json && \
touch /opt/ass/auth.json && \
touch /opt/ass/data.json
# Install dependencies as rootless user
RUN npm i --save-dev && \
npm run build

@ -14,22 +14,9 @@ services:
restart: unless-stopped
ports:
- "40115:40115"
volumes:
- ./uploads:/opt/ass/uploads
- ./share:/opt/ass/share
- type: bind
source: ./config.json
target: /opt/ass/config.json
- type: bind
source: ./auth.json
target: /opt/ass/auth.json
- type: bind
source: ./data.json
target: /opt/ass/data.json
tmpfs: /tmp # temp files such as uploads are stored here
tty: true
environment:
- NODE_ENV=production # for production
- ASS_ENV=docker # docker, local, production (not widely used yet)
- LOG_LEVEL=debug # debug, info, warn, error
- FORCE_COLOR=3 # force color output

Loading…
Cancel
Save