-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
41 lines (31 loc) · 1.27 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
40
41
FROM python:3.10.2-slim
RUN apt update && apt install -y --no-install-recommends \
default-jre \
git \
zsh \
curl \
wget \
fonts-powerline \
gcc \
libmariadb-dev
RUN useradd -ms /bin/bash python
RUN pip install pdm
USER python
WORKDIR /home/python/app
ENV MY_PYTHON_PACKAGES=/home/python/app/__pypackages__/3.10
ENV PYTHONPATH=${PYTHONPATH}/home/python/app/src
ENV JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64
ENV PATH $PATH:${MY_PYTHON_PACKAGES}/bin
RUN sh -c "$(wget -O- https://github.com/deluan/zsh-in-docker/releases/download/v1.1.2/zsh-in-docker.sh)" -- \
-t https://github.com/romkatv/powerlevel10k \
-p git \
-p git-flow \
-p https://github.com/zdharma-continuum/fast-syntax-highlighting \
-p https://github.com/zsh-users/zsh-autosuggestions \
-p https://github.com/zsh-users/zsh-completions \
-a 'export TERM=xterm-256color'
RUN echo '[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh' >> ~/.zshrc && \
echo 'HISTFILE=/home/python/zsh/.zsh_history' >> ~/.zshrc && \
echo 'eval "$(pdm --pep582)"' >> ~/.zshrc && \
echo 'eval "$(pdm --pep582)"' >> ~/.bashrc
CMD [ "tail", "-f", "/dev/null" ]