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
# Use the official Rust image as a base | |
FROM rust:1.57 | |
# Set the working directory | |
WORKDIR /usr/src/volta | |
# Clone the Volta repository | |
RUN git clone --branch v1.1.1 https://github.com/volta-cli/volta.git . | |
# Build Volta |
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
# Use the official OpenJDK 11 as a parent image | |
FROM openjdk:11-jdk-slim | |
# Set environment variables for the algs4 classpath | |
ENV ALGS4_HOME /usr/local/algs4 | |
ENV CLASSPATH $ALGS4_HOME/algs4.jar:. | |
# Create directory for the algs4 library | |
RUN mkdir -p $ALGS4_HOME |