2022-08-27 22:01:32 +00:00
|
|
|
# ass Dockerfile v0.3.1
|
2021-07-13 22:56:17 +00:00
|
|
|
# authors:
|
|
|
|
# - tycrek <t@tycrek.com> (https://tycrek.com/)
|
|
|
|
# - Zusier <zusier@pm.me> (https://github.com/Zusier)
|
|
|
|
|
2022-03-14 18:31:18 +00:00
|
|
|
# Node 16 image
|
2023-08-17 02:02:36 +00:00
|
|
|
FROM node:16.20.2
|
2021-07-13 22:56:17 +00:00
|
|
|
|
|
|
|
# Set working directory
|
|
|
|
WORKDIR /opt/ass/
|
|
|
|
|
|
|
|
# Copy directory files (config.json, source files etc.)
|
|
|
|
COPY . ./
|
|
|
|
|
2021-07-14 17:50:28 +00:00
|
|
|
# Ensure these directories & files exist for compose volumes
|
2021-09-20 12:06:59 +00:00
|
|
|
RUN mkdir -p /opt/ass/uploads/thumbnails/ && \
|
|
|
|
mkdir -p /opt/ass/share/ && \
|
|
|
|
touch /opt/ass/config.json && \
|
|
|
|
touch /opt/ass/auth.json && \
|
2022-08-27 22:01:32 +00:00
|
|
|
touch /opt/ass/data.json
|
2021-07-14 17:50:28 +00:00
|
|
|
|
2022-07-13 21:24:04 +00:00
|
|
|
# Install dependencies as rootless user
|
|
|
|
RUN npm i --save-dev && \
|
|
|
|
npm run build
|
|
|
|
|
2021-07-13 22:56:17 +00:00
|
|
|
# Start ass
|
2022-05-30 22:01:58 +00:00
|
|
|
CMD npm start
|