Skip to content

Instantly share code, notes, and snippets.

@sheepla
Last active March 19, 2025 03:27
Show Gist options
  • Save sheepla/8f4f76df7eeab5e148421d2cec042788 to your computer and use it in GitHub Desktop.
Save sheepla/8f4f76df7eeab5e148421d2cec042788 to your computer and use it in GitHub Desktop.
Dockerfile for SML#
# About:
# Dockerfile for SML# a Standard ML family programming language
# See:
# https://github.com/smlsharp/smlsharp
# Usage:
# docker build -t smlsharp .
# docker run --rm -it smlsharp:latest rlwrap smlsharp
#
FROM --platform=linux/x86-64 debian:buster
RUN apt-get -y update
RUN apt-get -y install wget
RUN wget -P /usr/share/keyrings https://github.com/smlsharp/repos/raw/main/debian/dists/buster/smlsharp-archive-keyring.gpg
RUN wget -P /etc/apt/sources.list.d https://github.com/smlsharp/repos/raw/main/debian/dists/buster/smlsharp.list
RUN apt-get -y update
RUN apt-get -y install smlsharp
RUN apt-get -y install rlwrap
@sheepla
Copy link
Author

sheepla commented Mar 19, 2025

Dockerfile for SML#

Build

Download this Dockerfile and run this command on same directory:

docker build -t smlsharp .

Run

To launch SML# interpreter, run this command:

docker run --rm -it smlsharp:latest rlwrap smlsharp

NOTE: rlwrap is a tool that wraps specific commands to provide line editing functions similar to bash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment