Skip to content

Commit

Permalink
Merge pull request #74 from MGMCN/optimize-image-size
Browse files Browse the repository at this point in the history
add --no-install-recommends for apt-get command
  • Loading branch information
MGMCN committed Nov 17, 2023
2 parents bf73e73 + 1b0c1f9 commit c3ac579
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ COPY . /APP
WORKDIR /APP

RUN apt-get update -y && \
apt-get install python3-pip -y && \
pip3 install --break-system-packages -r requirements.txt
apt-get install -y --no-install-recommends python3-pip && \
pip3 install --break-system-packages -r requirements.txt && \
rm -rf /var/lib/apt/lists/*

ENTRYPOINT sh run.sh $username $password $port

0 comments on commit c3ac579

Please sign in to comment.