mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-01-08 04:04:42 +02:00
update h2o
This commit is contained in:
parent
d282f0bf32
commit
6ea836e072
@ -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 \
|
||||
|
@ -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
7
h2o/docker-compose.yml
Normal file
@ -0,0 +1,7 @@
|
||||
h2o:
|
||||
image: vimagick/h2o-arm
|
||||
ports:
|
||||
- "8080:80"
|
||||
volumes:
|
||||
- "./html:/var/www/html"
|
||||
restart: always
|
Loading…
Reference in New Issue
Block a user