Skip to content

Commit

Permalink
update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
benma committed Jul 1, 2024
1 parent 13881ba commit cf1722d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions bitbox-bridge/release/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# If you change this, also change the llvm repo below.
FROM ubuntu:20.04
FROM ubuntu:22.04

ARG DEBIAN_FRONTEND=noninteractive

Expand Down Expand Up @@ -37,12 +37,12 @@ RUN gem install --no-document fpm
##############################
# llvm (needed because some rust crates compile C code). See https://apt.llvm.org/.
RUN wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add -
RUN add-apt-repository 'deb http://apt.llvm.org/focal llvm-toolchain-focal-16 main'
RUN add-apt-repository 'deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-18 main'
RUN apt-get update -y && apt-get install -y --no-install-recommends \
llvm-16 \
clang-16
RUN update-alternatives --install /usr/bin/clang clang /usr/bin/clang-16 100
RUN update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-16 100
llvm-18 \
clang-18
RUN update-alternatives --install /usr/bin/clang clang /usr/bin/clang-18 100
RUN update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-18 100


##############################
Expand Down Expand Up @@ -76,7 +76,7 @@ RUN cd /opt/osxcross && UNATTENDED=yes OSX_VERSION_MIN=10.16 ./build.sh
# Rust compiler
ENV PATH /opt/cargo/bin:$PATH
ENV RUSTUP_HOME=/opt/rustup
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | CARGO_HOME=/opt/cargo sh -s -- --profile minimal --default-toolchain 1.69.0 -y
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | CARGO_HOME=/opt/cargo sh -s -- --profile minimal --default-toolchain 1.79.0 -y
RUN rustup target add x86_64-pc-windows-gnu
RUN rustup target add x86_64-apple-darwin
RUN rustup target add aarch64-apple-darwin
Expand Down
2 changes: 1 addition & 1 deletion bitbox-bridge/release/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# A poor mans command runner
CONTAINER=shiftcrypto/bitbox-bridge
CONTAINER=shiftcrypto/bitbox-bridge:2
USER=$(shell id -u):$(shell id -g)
MOUNT=$(shell pwd)/../..:/bitbox-bridge

Expand Down

0 comments on commit cf1722d

Please sign in to comment.