From ee30a111235ca017caa33fb7adcec2e88c5aec26 Mon Sep 17 00:00:00 2001 From: Rishi Ghan Date: Fri, 27 Aug 2021 09:53:50 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=B3=20Added=20dockerfile=20and=20READM?= =?UTF-8?q?E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 19 +++++++++++++++++++ README.md | 9 +++++++++ 2 files changed, 28 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..4c50a11 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,19 @@ +FROM node:buster +LABEL maintainer="Rishi Ghan " + +RUN mkdir -p /usr/src/threetwo +WORKDIR /usr/src/threetwo + +RUN apt-get -y install glibc xdg-utils python xvfb imagemagick +RUN wget --no-check-certificate -nv -O- https://raw.githubusercontent.com/kovidgoyal/calibre/master/setup/linux-installer.py | sudo python -c "import sys; main=lambda:sys.stderr.write('Download failed\n'); exec(sys.stdin.read()); main()" + +COPY package.json /usr/src/threetwo +COPY nodemon.json /usr/src/threetwo + +RUN npm i -g yarn && \ + yarn + +COPY . /usr/src/threetwo +EXPOSE 3050 + +CMD yarn run dev \ No newline at end of file diff --git a/README.md b/README.md index e69de29..509a410 100644 --- a/README.md +++ b/README.md @@ -0,0 +1,9 @@ +# ThreeTwo! + +⚠️ This project is in early stages of development and as such, not ready for general use. + +## Local Development + +1. Clone this repo +2. `yarn run dev` (you can ignore the warnings) +3. `calibre` is a dependency of this project. \ No newline at end of file