File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments