Skip to content

Commit

Permalink
Improve Dockerfile.
Browse files Browse the repository at this point in the history
  • Loading branch information
thorian93 authored and flopp committed Jun 2, 2024
1 parent 76a7f6f commit 1ca04e9
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,27 @@ WORKDIR /usr/src/app
COPY requirements.txt ./
COPY ./ /usr/src/app/

RUN pip install --upgrade pip wheel && \
pip install --upgrade -r requirements.txt && \
RUN pip install --no-cache-dir --upgrade pip wheel && \
pip install --no-cache-dir --upgrade -r requirements.txt && \
pip install .

RUN \
rm -rf /usr/share/man/* && \
rm -rf /root/.cache/pip/ && \
rm -rf /usr/src/app/.git* && \
rm -rf /usr/src/app/examples && \
rm -rf /usr/src/app/venv

RUN apt-get purge -y \
make \
gcc &&\
git \
wget \
unzip \
perl \
gcc && \
apt-get autoremove -y && \
apt-get autoclean -y && \
apt-get clean all


CMD ["/bin/bash"]

0 comments on commit 1ca04e9

Please sign in to comment.