forked from starknet-edu/ownable-workshop
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
39 lines (27 loc) · 952 Bytes
/
Dockerfile
File metadata and controls
39 lines (27 loc) · 952 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
FROM ubuntu:latest
RUN apt update && apt upgrade -y
RUN apt install git curl zsh -y
# Change default shell to zsh
SHELL ["/bin/zsh", "-lc"]
# Set environment variables
ENV SHELL /bin/zsh
ENV HOME /root
ENV PATH $PATH:$HOME/.bin:$HOME/.local/bin
# Install oh-my-zsh for VSCode's DevContainer plugin
RUN sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# Install starkli
RUN curl https://get.starkli.sh | sh
# Install and configure asdf
RUN git clone https://github.com/asdf-vm/asdf.git $HOME/.asdf --branch v0.14.0
# Enable oh-my-zsh plugin for asdf
RUN sed -i 's/plugins=(git)/plugins=(git asdf)/' $HOME/.zshrc
# Source changes to configuration file
RUN source $HOME/.zshrc
# Add asdf binaries to path
ENV PATH $PATH:$HOME/.asdf/bin:$HOME/.asdf/shims
# Install common dependenies with asdf
RUN asdf plugin add scarb
RUN asdf plugin add starknet-foundry
WORKDIR /app
COPY .tool-versions .
RUN asdf install