Skip to content

Instantly share code, notes, and snippets.

@ptisserand
Last active January 6, 2023 14:56
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 ptisserand/9ce3a49f3afa3299ade31508b62bef45 to your computer and use it in GitHub Desktop.
Save ptisserand/9ce3a49f3afa3299ade31508b62bef45 to your computer and use it in GitHub Desktop.
Dockerfile for cairo environment development
FROM ubuntu:22.04
LABEL org.opencontainers.image.authors="p.tisserand@gmail.com"
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