We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent7b06c79 commit9ff4f6aCopy full SHA for 9ff4f6a
Dockerfile
@@ -0,0 +1,21 @@
1
+FROM alpine:latest
2
+
3
+# Iputils fetches non-busybox ping which allows to run it under non-root, see
4
+# https://github.com/gliderlabs/docker-alpine/issues/253
5
+RUN apk add --update gcc libc-dev bison flex readline-dev zlib-dev perl make diffutils gdb iproute2 musl-dbg iputils linux-headers
6
7
+# Finally, there is no accidental postgres user in alpine, so create one
8
+RUN addgroup postgres && adduser -h /pg -D -G postgres postgres
9
10
+ENV LANG en_US.utf8
11
+ENV CFLAGS -O0
12
+ENV PATH /pg/install/bin:$PATH
13
14
+COPY ./ /pg/src
15
16
+RUN cd /pg/src && \
17
+CFLAGS=-ggdb3 ./configure --enable-cassert --enable-debug --prefix=/pg/install && \
18
+make -j 8 install
19
20
+# Crutch to allow regression test to write there
21
+RUN chown -R postgres:postgres /pg/src/src/test/regress