mirror of https://github.com/tycrek/ass
parent
c8a3639ddb
commit
6b7ddf3e0c
@ -0,0 +1,22 @@
|
|||||||
|
# ass Dockerfile v0.1.0
|
||||||
|
# authors:
|
||||||
|
# - tycrek <t@tycrek.com> (https://tycrek.com/)
|
||||||
|
# - Zusier <zusier@pm.me> (https://github.com/Zusier)
|
||||||
|
|
||||||
|
# Node 14 image
|
||||||
|
FROM node:14.17.3
|
||||||
|
|
||||||
|
# Set working directory
|
||||||
|
WORKDIR /opt/ass/
|
||||||
|
|
||||||
|
# Copy directory files (config.json, source files etc.)
|
||||||
|
COPY . ./
|
||||||
|
|
||||||
|
# Update npm to at least v7.x.x
|
||||||
|
RUN npm i -g npm@>=7
|
||||||
|
|
||||||
|
# Install dependencies
|
||||||
|
RUN npm i
|
||||||
|
|
||||||
|
# Start ass
|
||||||
|
CMD npm start
|
@ -0,0 +1,26 @@
|
|||||||
|
# ass Docker compose.yaml v0.1.0
|
||||||
|
# authors:
|
||||||
|
# - tycrek <t@tycrek.com> (https://tycrek.com/)
|
||||||
|
# - Zusier <zusier@pm.me> (https://github.com/Zusier)
|
||||||
|
|
||||||
|
services:
|
||||||
|
ass:
|
||||||
|
build: .
|
||||||
|
command: npm start
|
||||||
|
container_name: ass-docker
|
||||||
|
restart: unless-stopped
|
||||||
|
ports:
|
||||||
|
- "40115:40115"
|
||||||
|
- "45375:45375"
|
||||||
|
volumes:
|
||||||
|
- type: bind
|
||||||
|
source: /opt/ass/uploads
|
||||||
|
target: /opt/ass/uploads
|
||||||
|
- type: bind
|
||||||
|
source: /opt/ass/config.json
|
||||||
|
target: /opt/ass/config.json
|
||||||
|
- type: bind
|
||||||
|
source: /opt/ass/auth.json
|
||||||
|
target: /opt/ass/auth.json
|
||||||
|
tmpfs: /tmp
|
||||||
|
working_dir: /opt/ass
|
Loading…
Reference in new issue