diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..7852f01 --- /dev/null +++ b/Dockerfile @@ -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 diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..296b9c9 --- /dev/null +++ b/docker-compose.yml @@ -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