Created
September 7, 2023 17:58
-
-
Save automata/aeaecc461f335feaff59ea1b704e4f66 to your computer and use it in GitHub Desktop.
Mojo Docker
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
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