-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.dev
More file actions
48 lines (36 loc) · 1.01 KB
/
Copy pathDockerfile.dev
File metadata and controls
48 lines (36 loc) · 1.01 KB
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
42
43
44
45
46
47
48
FROM archlinux/archlinux:base-devel
ARG USERNAME=user
ARG USER_UID=1000
ARG USER_GID=1000
WORKDIR /workspace
RUN pacman -Syu --noconfirm && \
pacman -S --noconfirm \
curl \
git \
bash \
libffi \
openssl \
openssh \
unzip \
make \
zlib \
bzip2 \
readline \
sqlite \
xz \
tk \
&& pacman -Scc --noconfirm
RUN groupadd -g ${USER_GID} ${USERNAME} && \
useradd -m -u ${USER_UID} -g ${USERNAME} ${USERNAME}
USER ${USERNAME}
# Install pyenv
RUN curl https://pyenv.run | bash
ENV PYENV_ROOT="/home/${USERNAME}/.pyenv"
ENV PATH="${PYENV_ROOT}/bin:${PATH}"
# Install Python 3.11 via pyenv
RUN eval "$(pyenv init -)" && pyenv install 3.11 && pyenv global 3.11
RUN eval "$(pyenv init -)" && pip install --no-cache-dir --user hatch
RUN curl -fsSL https://bun.sh/install | bash
ENV PATH="/home/${USERNAME}/.local/bin:/home/${USERNAME}/.bun/bin:${PYENV_ROOT}/shims:${PATH}"
EXPOSE 5173 8000 19000 19001 19002
CMD ["/bin/bash"]