1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-01-08 04:04:42 +02:00

update h2o

This commit is contained in:
kev 2015-12-24 11:49:38 +08:00
parent d282f0bf32
commit 6ea836e072
3 changed files with 21 additions and 6 deletions

View File

@ -5,17 +5,21 @@
FROM alpine
MAINTAINER kev <noreply@datageek.info>
ENV H2O_VER 1.6.1
ENV H2O_URL https://github.com/h2o/h2o/archive/v${H2O_VER}.tar.gz
ENV H2O_DIR h2o-${H2O_VER}
RUN apk add -U build-base \
cmake \
curl \
linux-headers \
zlib-dev \
&& curl -sSL https://github.com/h2o/h2o/archive/master.tar.gz | tar xz \
&& cd h2o-master \
&& curl -sSL ${H2O_URL} | tar xz \
&& cd ${H2O_DIR} \
&& cmake -DWITH_BUNDLED_SSL=on . \
&& make install \
&& cd .. \
&& rm -rf h2o-master \
&& rm -rf ${H2O_DIR} \
&& apk del build-base \
cmake \
curl \

View File

@ -5,17 +5,21 @@
FROM vimagick/alpine-arm
MAINTAINER kev <noreply@datageek.info>
ENV H2O_VER 1.6.1
ENV H2O_URL https://github.com/h2o/h2o/archive/v${H2O_VER}.tar.gz
ENV H2O_DIR h2o-${H2O_VER}
RUN apk add -U build-base \
cmake \
curl \
linux-headers \
zlib-dev \
&& curl -sSL https://github.com/h2o/h2o/archive/master.tar.gz | tar xz \
&& cd h2o-master \
&& curl -sSL ${H2O_URL} | tar xz \
&& cd ${H2O_DIR} \
&& cmake -DWITH_BUNDLED_SSL=on . \
&& make install \
&& cd .. \
&& rm -rf h2o-master \
&& rm -rf ${H2O_DIR} \
&& apk del build-base \
cmake \
curl \

7
h2o/docker-compose.yml Normal file
View File

@ -0,0 +1,7 @@
h2o:
image: vimagick/h2o-arm
ports:
- "8080:80"
volumes:
- "./html:/var/www/html"
restart: always