|
@@ -1,13 +1,16 @@
|
1
|
1
|
FROM node:7
|
2
|
2
|
# FROM ubuntu:16.04
|
3
|
3
|
|
4
|
|
-RUN echo 'deb http://ftp.debian.org/debian jessie-backports main' >> /etc/apt/sources.list
|
|
4
|
+RUN echo "deb [check-valid-until=no] http://cdn-fastly.deb.debian.org/debian jessie main" > /etc/apt/sources.list.d/jessie.list
|
|
5
|
+RUN echo "deb [check-valid-until=no] http://archive.debian.org/debian jessie-backports main" > /etc/apt/sources.list.d/jessie-backports.list
|
|
6
|
+RUN sed -i '/deb http:\/\/deb.debian.org\/debian jessie-updates main/d' /etc/apt/sources.list
|
|
7
|
+RUN apt-get -o Acquire::Check-Valid-Until=false update
|
5
|
8
|
|
6
|
9
|
RUN mkdir -p /usr/src/app
|
7
|
10
|
WORKDIR /usr/src/app
|
8
|
11
|
COPY package.json /usr/src/app/
|
9
|
|
-RUN apt-get update -y && apt-get upgrade -y && \
|
10
|
|
- apt-get install -y nodejs npm libcairo2-dev libjpeg62-turbo-dev libpango1.0-dev libgif-dev libpng-dev build-essential g++ ffmpeg
|
|
12
|
+RUN apt-get -o Acquire::Check-Valid-Until=false update -y && apt-get upgrade -y && \
|
|
13
|
+ apt-get install -y nodejs npm libcairo2-dev libjpeg62-turbo-dev libpango1.0-dev libgif-dev libpng-dev build-essential g++ ffmpeg
|
11
|
14
|
COPY package.json* yarn.lock* .npmrc* /usr/src/app/
|
12
|
15
|
RUN npm install --production
|
13
|
16
|
|