-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 0ef77d3
Showing
1 changed file
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |