|
@@ -8,8 +8,10 @@ WORKDIR /usr/src/app
|
8
|
8
|
COPY package.json /usr/src/app/
|
9
|
9
|
RUN apt-get update -y && apt-get upgrade -y && \
|
10
|
10
|
apt-get install -y nodejs npm libcairo2-dev libjpeg62-turbo-dev libpango1.0-dev libgif-dev libpng-dev build-essential g++ ffmpeg
|
11
|
|
-COPY ./ /usr/src/app/
|
|
11
|
+COPY package.json* yarn.lock* .npmrc* /usr/src/app/
|
12
|
12
|
RUN npm install --production
|
13
|
13
|
|
|
14
|
+COPY ./ /usr/src/app/
|
|
15
|
+
|
14
|
16
|
EXPOSE 8888
|
15
|
17
|
CMD [ "npm", "start" ]
|