Skip to content

Commit

Permalink
Revert "Compile rust binaries outside of docker image and copy them in"
Browse files Browse the repository at this point in the history
This reverts commit 5f2fe0a.
  • Loading branch information
stijndcl committed Apr 19, 2024
1 parent 6c53c4a commit 7a18835
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion unipept-database/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,19 @@ RUN dos2unix /unipept-database/scripts/**/*.sh && chmod u+x /unipept-database/sc

RUN echo 'root:unipept' | chpasswd

ADD rust-binaries /unipept-database/scripts/helper_scripts
# Install Rust toolchain (https://rustup.rs/)
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | bash -s -- -y
RUN echo 'source $HOME/.cargo/env' >> $HOME/.bashrc
ENV PATH="/root/.cargo/bin:${PATH}"

# Compile Rust binaries
RUN /unipept-database/scripts/build_binaries.sh

# Clean up build artifacts so they don't end up in the image
RUN rm -rf /unipept-database/scripts/helper_scripts/unipept-database-rs/target/

# Uninstall Rust again to keep the image size down
RUN rustup self uninstall -y

# Database types that should be processed by this image. Delimited by comma's.
ENV DB_TYPES swissprot
Expand Down

0 comments on commit 7a18835

Please sign in to comment.