-
Notifications
You must be signed in to change notification settings - Fork 705
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (28 loc) · 945 Bytes
/
Dockerfile
File metadata and controls
31 lines (28 loc) · 945 Bytes
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
31
FROM BASE_IMAGE
ARG VERSION=VERSION
ARG TARGETARCH
LABEL name="pg-deeplake" \
version="${VERSION}" \
vendor="Activeloop" \
license="/LICENSE" \
description="PostgreSQL with DeepLake Extension installed." \
contact="support@activeloop.ai"
ENV DEEPLAKE_LICENSE_FILE=/LICENSE
RUN apt-get update && \
apt-get install --no-install-recommends -y \
barman \
barman-cli \
barman-cli-cloud \
libecpg6 \
python3-pip \
ca-certificates \
libecpg-compat3 && \
rm -rf /var/lib/apt/lists/* && \
pip3 install --no-cache-dir deeplake --break-system-packages && \
mkdir -p /etc/pki/tls/certs/ && \
ln -s /etc/ssl/certs/ca-certificates.crt /etc/pki/tls/certs/ca-bundle.crt
COPY ./debs/ /tmp/debs/
COPY --chmod=444 ./LICENSE /LICENSE
COPY ./postgres/docker-entrypoint.d/ /docker-entrypoint-initdb.d/
RUN apt-get install --no-install-recommends -y /tmp/debs/pg-deeplake-${VERSION}_${TARGETARCH}.deb && rm -rf /tmp/debs/
USER 999