Skip to content

Instantly share code, notes, and snippets.

@liropa
liropa / Dockerfile
Created January 23, 2024 17:04
Adding Volta (v1.1.1) from source to Docker Image
# 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
@liropa
liropa / Dockerfile
Last active October 10, 2023 23:57
Dockerfile for algs4 Coursera course environment
# 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