1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-20 22:08:39 +00:00

add h2o-arm

This commit is contained in:
kev 2015-12-24 11:00:28 +08:00
parent 36929caded
commit d282f0bf32
2 changed files with 40 additions and 0 deletions

32
h2o/arm/Dockerfile Normal file

@ -0,0 +1,32 @@
#
# Dockerfile for h2o-arm
#
FROM vimagick/alpine-arm
MAINTAINER kev <noreply@datageek.info>
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 \
&& cmake -DWITH_BUNDLED_SSL=on . \
&& make install \
&& cd .. \
&& rm -rf h2o-master \
&& apk del build-base \
cmake \
curl \
linux-headers \
zlib-dev \
&& rm -rf /var/cache/apk/*
COPY h2o.conf /etc/
WORKDIR /var/www/html
EXPOSE 80 443
CMD ["h2o", "-c", "/etc/h2o.conf"]

8
h2o/arm/h2o.conf Normal file

@ -0,0 +1,8 @@
hosts:
"*:80":
listen:
port: 80
paths:
/:
file.dir: /var/www/html
file.dirlisting: ON