mirror of https://github.com/Facinorous-420/dick
Add docker compose file. (#29)
Added a compose file to allow for dick to insert into docker. Please be gentle. This resolves #21pull/30/head
parent
2334a5e33c
commit
62e795cdbc
@ -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…
Reference in new issue