2015-12-24 05:00:28 +02:00
|
|
|
#
|
|
|
|
# Dockerfile for h2o-arm
|
|
|
|
#
|
|
|
|
|
2016-08-02 10:46:56 +02:00
|
|
|
FROM easypi/alpine-arm
|
|
|
|
MAINTAINER EasyPi Software Foundation
|
2015-12-24 05:00:28 +02:00
|
|
|
|
2017-05-16 09:09:14 +02:00
|
|
|
ENV H2O_VER 2.2.2
|
2015-12-24 05:49:38 +02:00
|
|
|
ENV H2O_URL https://github.com/h2o/h2o/archive/v${H2O_VER}.tar.gz
|
|
|
|
ENV H2O_DIR h2o-${H2O_VER}
|
|
|
|
|
2016-03-05 13:47:20 +02:00
|
|
|
RUN set -xe \
|
|
|
|
&& apk add -U build-base \
|
|
|
|
cmake \
|
|
|
|
curl \
|
|
|
|
linux-headers \
|
|
|
|
zlib-dev \
|
2015-12-24 05:49:38 +02:00
|
|
|
&& curl -sSL ${H2O_URL} | tar xz \
|
|
|
|
&& cd ${H2O_DIR} \
|
2015-12-24 05:00:28 +02:00
|
|
|
&& cmake -DWITH_BUNDLED_SSL=on . \
|
|
|
|
&& make install \
|
|
|
|
&& cd .. \
|
2015-12-24 05:49:38 +02:00
|
|
|
&& rm -rf ${H2O_DIR} \
|
2015-12-24 05:00:28 +02:00
|
|
|
&& apk del build-base \
|
|
|
|
cmake \
|
|
|
|
curl \
|
|
|
|
linux-headers \
|
|
|
|
zlib-dev \
|
|
|
|
&& rm -rf /var/cache/apk/*
|
|
|
|
|
|
|
|
COPY h2o.conf /etc/
|
|
|
|
WORKDIR /var/www/html
|
|
|
|
|
2016-03-05 13:47:20 +02:00
|
|
|
EXPOSE 80
|
2015-12-24 05:00:28 +02:00
|
|
|
CMD ["h2o", "-c", "/etc/h2o.conf"]
|