Skip to content

Commit

Permalink
Fix dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
vldm committed Jan 13, 2023
1 parent ca82dc8 commit e619584
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
FROM ubuntu:20.04 as builder
RUN apt-get -y update
ENV TZ=Europe/Stockholm
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN apt-get -y install protobuf-compiler curl git libssl-dev libudev-dev make pkg-config zlib1g-dev llvm clang cmake
RUN apt-get -y install openssh-client
RUN apt-get -y update && apt-get -y install protobuf-compiler curl git libssl-dev libudev-dev make pkg-config zlib1g-dev llvm clang cmake openssh-client
RUN mkdir -p -m 0700 ~/.ssh && ssh-keyscan github.com >> ~/.ssh/known_hosts
RUN curl https://sh.rustup.rs -sSf | bash -s -- -y
ENV PATH="/root/.cargo/bin:${PATH}"
Expand All @@ -17,8 +15,7 @@ RUN rm /solana/target/release/build -rf


FROM ubuntu:20.04 as dest
RUN apt-get -y update
RUN apt-get -y install libssl-dev libudev-dev curl
RUN apt-get -y update && apt-get -y install libssl-dev libudev-dev curl

COPY --from=builder /solana/target/release/ /usr/local/solana
COPY ./entrypoint.sh /entrypoint.sh
Expand Down

0 comments on commit e619584

Please sign in to comment.