plandex image, simple setup, with sample script
This commit is contained in:
commit
de73f80b43
3 changed files with 35 additions and 0 deletions
1
.dockerignore
Normal file
1
.dockerignore
Normal file
|
@ -0,0 +1 @@
|
|||
plandex
|
30
Dockerfile
Normal file
30
Dockerfile
Normal file
|
@ -0,0 +1,30 @@
|
|||
FROM --platform=linux/amd64 golang:1.21.3
|
||||
|
||||
ARG SRV_UID="1000"
|
||||
ARG SRV_GID="1000"
|
||||
ARG SRV_VERSION="0"
|
||||
|
||||
ENV SRV_UID $SRV_UID
|
||||
ENV SRV_GID $SRV_GID
|
||||
ENV SRV_VERSION $SRV_VERSION
|
||||
ENV SRV_APT_GET_INSTALL $SRV_APT_GET_INSTALL
|
||||
|
||||
RUN apt-get update -y && \
|
||||
apt-get install -y git gcc g++ make $SRV_APT_GET_INSTALL && \
|
||||
apt-get clean && rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN ( id -g $SRV_GID || groupadd -g $SRV_GID srv ) && \
|
||||
( id $SRV_UID || useradd -s /bin/bash -d /app -u $SRV_UID -g $SRV_GID srv ) && \
|
||||
install -o $SRV_UID -g $SRV_GID -d /app
|
||||
|
||||
RUN curl -sL https://plandex.ai/install.sh | bash
|
||||
|
||||
USER $SRV_UID:$SRV_GID
|
||||
|
||||
RUN ln -s /app/.bash_history $HOME/.bash_history
|
||||
|
||||
VOLUME /app
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
CMD ["/bin/bash"]
|
4
plandex
Executable file
4
plandex
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/sh
|
||||
|
||||
docker run -it --rm -v$PWD:/app \
|
||||
src.ci/srv/plandex:latest /usr/local/bin/plandex $@
|
Loading…
Add table
Add a link
Reference in a new issue