🐳 Added dockerfile and README

This commit is contained in:
2021-08-27 09:53:50 -07:00
parent 482e890d95
commit ee30a11123
2 changed files with 28 additions and 0 deletions

19
Dockerfile Normal file
View File

@@ -0,0 +1,19 @@
FROM node:buster
LABEL maintainer="Rishi Ghan <rishi.ghan@gmail.com>"
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

View File

@@ -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.