summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Dockerfile10
1 files changed, 5 insertions, 5 deletions
diff --git a/Dockerfile b/Dockerfile
index 61bd66f..d867392 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -9,7 +9,6 @@ RUN pacman -Syu --disable-sandbox --noconfirm --needed \
nano \
nodejs-lts-jod \
npm \
- openssh \
python \
ripgrep \
fd \
@@ -42,7 +41,7 @@ RUN cd /home/dev \
&& mkdir pkgs/ pkgs/install
RUN cd /home/dev/pkgs/ \
- && curl https://aur.archlinux.org/cgit/aur.git/snapshot/aur-6b44aec43844f8b1be3a7e3d0a49e1ee38f7718b.tar.gz -o pi.tar.gz \
+ && curl -fsSL https://aur.archlinux.org/cgit/aur.git/snapshot/aur-6b44aec43844f8b1be3a7e3d0a49e1ee38f7718b.tar.gz -o pi.tar.gz \
&& mkdir pi \
&& tar -C pi --strip=1 -xzvf pi.tar.gz \
&& rm pi.tar.gz \
@@ -52,7 +51,7 @@ RUN cd /home/dev/pkgs/ \
&& cd .. && rm -rf pi
RUN cd /home/dev/pkgs/ \
- && curl https://aur.archlinux.org/cgit/aur.git/snapshot/aur-6056bd8d425865b03bba622b93046b2dbf4beeea.tar.gz -o paseo.tar.gz \
+ && curl -fsSL https://aur.archlinux.org/cgit/aur.git/snapshot/aur-6056bd8d425865b03bba622b93046b2dbf4beeea.tar.gz -o paseo.tar.gz \
&& mkdir paseo \
&& tar -C paseo --strip=1 -xzvf paseo.tar.gz \
&& rm paseo.tar.gz \
@@ -63,7 +62,7 @@ RUN cd /home/dev/pkgs/ \
USER root
RUN mkdir /config \
- && chmod 777 /config
+ && chmod 0755 /config
RUN pacman -U --noconfirm /home/dev/pkgs/install/* \
&& rm -rf /home/dev/pkgs/install
@@ -79,7 +78,8 @@ COPY config.json /templates/config.json
COPY --chmod=0755 login.sh /usr/local/bin/devbox-entrypoint
COPY --chmod=0755 template.sh /usr/local/bin/devbox-template
-RUN ln -sf /config/models.json /home/dev/.pi/agent/models.json
+RUN mkdir -p /home/dev/.pi/agent \
+ && ln -sf /config/models.json /home/dev/.pi/agent/models.json
EXPOSE 6767