-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdockerfile
39 lines (28 loc) · 1.18 KB
/
dockerfile
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 python:3.9-slim
# Set the working directory
WORKDIR /app
# Copy the current directory contents into the container at /app
COPY . /app
# Install zsh, curl, git, and other needed packages
RUN apt-get update && apt-get install -y \
zsh \
vim \
curl \
git \
&& rm -rf /var/lib/apt/lists/*
# Install oh-my-zsh
RUN sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended
# Install zsh-autosuggestions
RUN git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
# Install zsh-syntax-highlighting
RUN git clone https://github.com/zsh-users/zsh-syntax-highlighting ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
# Install powerlevel10k theme
RUN git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/themes/powerlevel10k
# Copy zsh configuration
COPY .zshrc /root/.zshrc
# Install packages specified in requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
# Set zsh as the default shell
SHELL ["/bin/zsh", "-c"]
# Default command to run when starting the container
CMD ["zsh"]