From 6aec057ccb57bf966065b98c3e1b22fd33a3f41f Mon Sep 17 00:00:00 2001 From: Jay Date: Wed, 13 Mar 2019 14:27:01 +0800 Subject: [PATCH] update alpine --- Dockerfile | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/Dockerfile b/Dockerfile index c40e55e..98a38a1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,6 @@ -FROM node:lts +FROM node:lts-alpine WORKDIR /data -COPY ./ffmpeg.tgz / -RUN apt-get update && \ - apt-get full-upgrade -y && \ - apt-get install -y unoconv curl imagemagick graphicsmagick curl wget python3 python3-pip qpdf poppler-utils git curl wget && \ - apt-get clean && \ - mkdir -p /usr/local/bin && \ - tar zxvf /ffmpeg.tgz -C /usr/local/bin && \ - rm /ffmpeg.tgz +RUN echo "http://dl-4.alpinelinux.org/alpine/edge/main" >> /etc/apk/repositories && \ + echo "http://dl-4.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories && \ + echo "http://dl-4.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories && \ + apk add --no-cache build-base py3-unoconv imagemagick graphicsmagick curl wget git python3-dev jpeg-dev zlib-dev qpdf poppler-utils ffmpeg python