Add docker compose file. (#29)

Added a compose file to allow for dick to insert into docker. Please be
gentle.

This resolves #21
pull/30/head
Subby 2 years ago committed by GitHub
parent 2334a5e33c
commit 62e795cdbc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,24 @@
FROM archlinux:latest
# Update the repositories
RUN pacman -Sy
# Install nodejs
RUN pacman -S --noconfirm git nodejs npm
# Generate directories and set up project
RUN mkdir /app && mkdir /app/dick && mkdir /app/ass
COPY . /app/dick
RUN cd /app/dick
#RUN nvm install node
RUN npm install -g npm@latest
RUN npm --version
RUN node --version
WORKDIR /app/dick
RUN npm i
# Expose port
EXPOSE 3000

@ -0,0 +1,14 @@
version: "2.1"
services:
dick:
container_name: dick
build:
context: ./
dockerfile: Dockerfile
command: npm start
volumes:
- ./src/constants.ts:/app/dick/src/constants.ts # DICK constants file
- ../ass:/app/ass # Path to your ASS install
ports:
- 3000:3000
restart: unless-stopped
Loading…
Cancel
Save