Last active
January 6, 2023 14:56
-
-
Save ptisserand/9ce3a49f3afa3299ade31508b62bef45 to your computer and use it in GitHub Desktop.
Dockerfile for cairo environment development
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 | |
LABEL org.opencontainers.image.authors="[email protected]" | |
ARG USER=rob | |
ARG USER_ID=1000 | |
ARG GROUP=starknet | |
ARG GROUP_ID=1000 | |
# Create new user | |
RUN \ | |
addgroup --gid ${GROUP_ID} ${GROUP} && \ | |
adduser --uid ${USER_ID} --ingroup ${GROUP} --disabled-password --gecos "" ${USER} | |
RUN apt-get update | |
RUN apt-get install -yq tzdata && \ | |
ln -fs /usr/share/zoneinfo/Europe/Paris /etc/localtime && \ | |
dpkg-reconfigure -f noninteractive tzdata | |
RUN apt-get install -y software-properties-common | |
RUN add-apt-repository -y ppa:deadsnakes/ppa | |
RUN apt-get install -y \ | |
build-essential \ | |
python3.9 \ | |
python3.9-venv \ | |
python3.9-dev \ | |
libgmp3-dev | |
USER ${USER} | |
WORKDIR /home/${USER} | |
RUN python3.9 -m venv venv | |
ENV PATH /home/${USER}/venv/bin:$PATH | |
RUN pip install --upgrade pip | |
RUN pip install ecdsa fastecdsa sympy | |
RUN pip install cairo-lang | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment