Skip to content

Instantly share code, notes, and snippets.

@automata
Created September 7, 2023 17:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save automata/aeaecc461f335feaff59ea1b704e4f66 to your computer and use it in GitHub Desktop.
Save automata/aeaecc461f335feaff59ea1b704e4f66 to your computer and use it in GitHub Desktop.
Mojo Docker
FROM ubuntu:22.04
# Install initial dependencies
RUN apt-get update && apt-get install -y curl gpg
# Install modular
RUN apt-get install -y apt-transport-https && \
keyring_location=/usr/share/keyrings/modular-installer-archive-keyring.gpg && \
curl -1sLf 'https://dl.modular.com/bBNWiLZX5igwHXeu/installer/gpg.0E4925737A3895AD.key' | gpg --dearmor >> ${keyring_location} && \
curl -1sLf 'https://dl.modular.com/bBNWiLZX5igwHXeu/installer/config.deb.txt?distro=debian&codename=wheezy' > /etc/apt/sources.list.d/modular-installer.list && \
apt-get update && \
apt-get install -y modular
# Install mojo
# Make sure to add your auth key bellow:
RUN modular auth <YOUR_AUTH_KEY_HERE> && \
modular install mojo
# Run mojo
CMD mojo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment