forked from mecab/docker-pg_rman
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
30 lines (24 loc) · 833 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
FROM alpine:latest
LABEL maintainer "mecab <[email protected]>"
ARG RMAN_VER=1.3.4
ARG PG_VER=96
ENV PACKAGE_URL https://github.com/ossc-db/pg_rman/releases/download/v${RMAN_VER}/pg_rman-${RMAN_VER}-pg${PG_VER}.tar.gz
ENV PGDATA /pg_data
ENV BACKUP_PATH /backup
VOLUME ["/pg_data", "/backup"]
WORKDIR /build
RUN apk --no-cache add postgresql-libs postgresql-dev linux-pam-dev \
libedit-dev zlib-dev \
&& apk add --no-cache --virtual build-dependencies \
curl build-base \
&& echo ${PACKAGE_URL} \
&& curl -SL ${PACKAGE_URL} | \
tar -zxv --strip-components=1 \
&& make \
&& make install \
&& cd / \
&& rm -rf /build \
&& apk del build-dependencies --purge
WORKDIR /
COPY ./entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]