ass/Dockerfile

28 lines
638 B
Docker
Raw Permalink Normal View History

# 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
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
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
2021-07-14 17:50:28 +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