Last active
March 19, 2025 03:27
-
-
Save sheepla/8f4f76df7eeab5e148421d2cec042788 to your computer and use it in GitHub Desktop.
Dockerfile for SML#
This file contains hidden or 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
# 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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:
NOTE:
rlwrap
is a tool that wraps specific commands to provide line editing functions similar to bash.