mirror of
https://github.com/dolthub/dolt.git
synced 2025-12-21 05:59:52 -06:00
21 lines
578 B
Docker
21 lines
578 B
Docker
# syntax=docker/dockerfile:1.3-labs
|
|
FROM ubuntu:22.04
|
|
|
|
ARG DOLT_VERSION
|
|
|
|
RUN apt update -y && \
|
|
apt install -y \
|
|
curl \
|
|
tini \
|
|
ca-certificates && \
|
|
apt clean && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
# we install dolt with the install.sh script, which will determine the platform/arch of the container
|
|
# and install the proper dolt binary
|
|
RUN bash -c 'curl -L https://github.com/dolthub/dolt/releases/download/v${DOLT_VERSION}/install.sh | bash'
|
|
RUN /usr/local/bin/dolt version
|
|
|
|
WORKDIR /var/lib/dolt
|
|
ENTRYPOINT ["tini", "--", "/usr/local/bin/dolt"]
|