-
-
Notifications
You must be signed in to change notification settings - Fork 530
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8118 from dolthub/db/fix-dockerhub
[no-release-notes] /docker/{Dockerfile,serverDockerfile}: change dolt installation to use install script which can determine platform
- Loading branch information
Showing
2 changed files
with
12 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
# syntax=docker/dockerfile:1.3-labs | ||
FROM --platform=$BUILDPLATFORM ubuntu:22.04 | ||
FROM ubuntu:22.04 | ||
|
||
ARG DOLT_VERSION | ||
ARG BUILDARCH | ||
|
||
RUN apt update -y && \ | ||
apt install -y \ | ||
curl \ | ||
tini \ | ||
ca-certificates && \ | ||
apt clean && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
ADD https://github.com/dolthub/dolt/releases/download/v${DOLT_VERSION}/dolt-linux-${BUILDARCH}.tar.gz dolt-linux-${BUILDARCH}.tar.gz | ||
RUN tar zxvf dolt-linux-${BUILDARCH}.tar.gz && \ | ||
cp dolt-linux-${BUILDARCH}/bin/dolt /usr/local/bin && \ | ||
rm -rf dolt-linux-${BUILDARCH} dolt-linux-${BUILDARCH}.tar.gz | ||
# 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"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters