Skip to content

Commit

Permalink
Merge pull request #1 from stakater-docker/init
Browse files Browse the repository at this point in the history
builder node mozjpeg
  • Loading branch information
Ahmad Iqbal Ali authored Sep 11, 2020
2 parents 4b59adc + 7b61b23 commit dc0df01
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
27 changes: 27 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
FROM node:lts-alpine AS build

ARG tag=v3.3.1

RUN apk --update --no-cache add \
build-base \
autoconf \
automake \
libtool \
pkgconf \
nasm \
tar

WORKDIR /src/mozjpeg
ADD https://github.com/mozilla/mozjpeg/archive/$tag.tar.gz ./

RUN tar -xzf $tag.tar.gz
RUN rm $tag.tar.gz

RUN SRC_DIR=$(ls -t1 -d mozjpeg-* | head -n1) && \
cd $SRC_DIR && \
autoreconf -fiv && \
cd .. && \
sh $SRC_DIR/configure && \
make install \
prefix=/usr/local \
libdir=/usr/local/lib64
7 changes: 7 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env groovy
@Library('github.com/stakater/stakater-pipeline-library@v2.16.35') _

pushDockerImage {
dockerRepositoryURL = "docker.io"
pushDockerImage = "builder-node-mozjpeg"
}

0 comments on commit dc0df01

Please sign in to comment.