From 5141d387b778f7c640bdb4fbee05b86dbdb2d8fa Mon Sep 17 00:00:00 2001 From: Rishi Ghan Date: Sun, 29 Aug 2021 09:22:50 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=B3=20Added=20some=20alpine=20deps=20t?= =?UTF-8?q?o=20the=20Dockerfile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4c50a11..c4f501e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,17 +1,17 @@ -FROM node:buster +FROM node:12-alpine 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 package.json yarn.lock /usr/src/threetwo/ COPY nodemon.json /usr/src/threetwo +COPY jsdoc.json /usr/src/threetwo + +RUN apk add --no-cache --virtual .build-deps make gcc g++ python \ + && yarn \ + && apk del .build-deps -RUN npm i -g yarn && \ - yarn COPY . /usr/src/threetwo EXPOSE 3050