site-max/Dockerfile

21 lines
780 B
Docker
Raw Permalink Normal View History

2017-07-14 15:51:49 +02:00
FROM nginx:alpine
2017-07-15 01:36:03 +02:00
RUN sed -i 's/#gzip/gzip/g' /etc/nginx/nginx.conf && \
2017-07-18 14:54:32 +02:00
sed -i '/gzip *on/ a gzip_types text/css application/javascript image/svg+xml;' /etc/nginx/nginx.conf && \
2017-07-19 00:44:16 +02:00
apk add --no-cache sassc nodejs build-base ffmpeg git coreutils bash && \
npm install -g svg-sprite-generator && \
git clone https://github.com/gpac/gpac.git && \
cd gpac && \
./configure --static-mp4box --use-zlib=no && \
make && \
make install
2017-07-19 01:03:28 +02:00
COPY video/ /usr/share/nginx/html/video/
2017-07-19 01:00:05 +02:00
WORKDIR /usr/share/nginx/html/video
RUN ./mpd_generate.sh 1_Compilation_Graphique.webm
2017-07-18 14:54:32 +02:00
COPY . /usr/share/nginx/html
WORKDIR /usr/share/nginx/html
RUN sassc -m -t compressed scss/creative.scss css/creative.css && \
2017-07-19 01:00:05 +02:00
svg-sprite-generate -d vector/ -o vector/sprite.svg