Files

28 lines
931 B
Docker

# Use production image and full tag close to the release.
# FROM --platform=linux/amd64 ghcr.io/hanzoai/postgres-documentdb:17-0.108.0-docdb-2.8.0
# Use moving development image during development.
FROM --platform=linux/amd64 ghcr.io/hanzoai/postgres-documentdb-dev:17-docdb
RUN --mount=type=cache,target=/var/cache/apt <<EOF
curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash
curl -L https://pgp.mongodb.com/server-7.0.asc | apt-key add -
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/debian bookworm/mongodb-org/7.0 main" | tee /etc/apt/sources.list.d/mongodb-org-7.0.list
apt update
apt install -y git-lfs mongodb-mongosh tmux nano
cd /tmp
curl -OJL https://go.dev/dl/go1.25.7.linux-amd64.tar.gz
tar -xf go1.25.7.linux-amd64.tar.gz
rm go1.25.7.linux-amd64.tar.gz
mv go /usr/local/
ln -s /usr/local/go/bin/* /usr/local/bin/
go version
EOF
WORKDIR /docdb/build/docdb-bw