Skip to content

Instantly share code, notes, and snippets.

@unasuke
Last active July 5, 2016 12:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save unasuke/01d78fdd67658de22c2b91e00ba5e0d6 to your computer and use it in GitHub Desktop.
Save unasuke/01d78fdd67658de22c2b91e00ba5e0d6 to your computer and use it in GitHub Desktop.
h2o-alpine
FROM alpine
RUN apk add --no-cache --virtual=builddeps \
bison \
ca-certificates \
cmake \
curl \
gcc \
g++ \
libc-dev \
linux-headers \
make \
openssl \
perl \
ruby \
ruby-dev \
wget \
zlib-dev \
&& wget -O - https://github.com/h2o/h2o/archive/v2.0.1.tar.gz | tar xz \
&& cd h2o-* \
&& cmake -DWITH_BUNDLED_SSL=on -DWITH_MRUBY=on . \
&& make install \
&& cd .. \
&& rm -rf h2o-* \
&& apk del builddeps
RUN mkdir /etc/h2o
WORKDIR /etc/h2o
EXPOSE 80 443
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment