Skip to content

Commit

Permalink
Relocate config for persistence
Browse files Browse the repository at this point in the history
Update Dockerfile
  • Loading branch information
zimmra committed Sep 5, 2023
1 parent c606ff6 commit 0cbe17b
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -61,16 +61,15 @@ RUN chmod +x /slic3r/get_latest_prusaslicer_release.sh \
&& rm -rf /var/lib/apt/lists/* \
&& apt-get autoclean \
&& mkdir -p /slic3r \
&& mkdir -p /config/.config \
&& mkdir -p /config/.config/PrusaSlicer \
&& mkdir -p /home/kasm-user/.config/PrusaSlicer \
&& mkdir -p /prints \
&& ln -s /config/.config/PrusaSlicer /config/PrusaSlicer \
&& chown -R kasm-user:kasm-user /slic3r /prints /config
&& ln -s /home/.config/PrusaSlicer /config/PrusaSlicer \
&& chown -R kasm-user:kasm-user /slic3r /prints /config /home/kasm-user/.config/PrusaSlicer


# Create the script and make it executable
RUN echo '#!/bin/bash' > /usr/local/bin/prusa-slicer && \
echo '/slic3r/slic3r-dist/prusa-slicer --datadir /config/.config/PrusaSlicer/ "$@"' >> /usr/local/bin/prusa-slicer && \
echo '/slic3r/slic3r-dist/prusa-slicer --datadir /home/kasm-user/.config/PrusaSlicer/ "$@"' >> /usr/local/bin/prusa-slicer && \
chmod +x /usr/local/bin/prusa-slicer

# add local files
Expand Down

0 comments on commit 0cbe17b

Please sign in to comment.