Cleanup Docker clean steps

This commit is contained in:
2026-07-03 15:04:19 -05:00
parent bfb1a8e95e
commit 435e5a1734
3 changed files with 14 additions and 16 deletions

View File

@@ -23,8 +23,7 @@ ENV PYTHONUNBUFFERED=1
WORKDIR /home/${USERNAME}
# 3. A: Install dependencies
RUN apt-get update
RUN apt-get install -y \
RUN apt-get update && apt-get install -y \
--no-install-recommends \
--no-install-suggests \
tree
@@ -52,11 +51,11 @@ RUN ollama serve & sleep 5 && ollama pull llama3.1:8b
USER root
# 5. Cleanup
RUN apt-get autoremove --purge
RUN apt-get autoclean
RUN apt-get autoremove -yqq --purge \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
&& rm -rf /tmp/*
RUN rm -rf /var/lib/apt/lists/*
RUN rm -rf /tmp/*
RUN mkdir -p /tmp/apps
# 6. Expose Port and define the command used to run the app