Skip to content

Commit

Permalink
Added dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
genki committed Jan 21, 2017
0 parents commit 0ef77d3
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
FROM alpine:edge

RUN apk --no-cache add make g++ musl-dev curl \
jemalloc zeromq libevent msgpack-c-dev ca-certificates && \
update-ca-certificates

WORKDIR /usr/local/src

ENV CFLAGS -g -O2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security
ENV LDFLAGS -Wl,-Bsymbolic-functions -fPIE -pie -Wl,-z,relro -Wl,-z,now
ENV CPPFLAGS -Wdate-time -D_FORTIFY_SOURCE=2
ENV CXXFLAGS -g -O2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security
ENV VERSION 6.1.4

RUN curl -Lo groonga.tar.gz \
http://packages.groonga.org/source/groonga/groonga-$VERSION.tar.gz && \
tar xzf groonga.tar.gz && cd groonga-$VERSION && \
./configure --prefix=/usr \
--disable-maintainer-mode --disable-dependency-tracking \
--disable-groonga-httpd && \
make && make install && make clean && cd .. && rm -rf groonga*

ENTRYPOINT ["groonga"]

0 comments on commit 0ef77d3

Please sign in to comment.