Chilledheart / mojo-docker-images

the dockerfile for running Mojo πŸ”₯

Home Page:https://developer.modular.com/download

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mojo docker container

build docker runner image

docker build --build-arg userid=$(id -u) --build-arg groupid=$(id -g) \
  --build-arg username=$(id -un) \
  --build-arg mojo_auth=mut_0000000000b840bf88cbb83a8b93cc5d \
  --build-arg https_proxy=http://<any-http-proxy> \
  -t mojo-runner .

and run hello world

docker run -it mojo-runner
$ mojo
Welcome to Mojo! πŸ”₯
Expressions are delimited by a blank line.
Type `:mojo help` for further assistance.
1> print("Hello, world!")
2.
Hello, world!

setup mirror site

add ubuntu site and pip site:

RUN sed -i 's@//.*archive.ubuntu.com@//mirrors.ustc.edu.cn@g' /etc/apt/sources.list
RUN sudo -u $username pip config set global.index-url https://mirrors.ustc.edu.cn/pypi/web/simple

About

the dockerfile for running Mojo πŸ”₯

https://developer.modular.com/download


Languages

Language:Dockerfile 100.0%