Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
InsertDisc authored Jan 9, 2024
1 parent 0526021 commit 73b6fc9
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
FROM python:3.10-slim
COPY requirements.txt .
# Run updates
RUN apt-get update \
&& apt-get upgrade -y --no-install-recommends \
&& apt-get install -y gcc g++ \
&& pip3 install --no-cache-dir --upgrade --requirement requirements.txt \
&& apt-get --purge autoremove gcc g++ \
&& apt-get clean \
&& apt-get update \
&& apt-get check \
&& apt-get -f install \
&& apt-get autoclean \
&& rm -rf /tmp/* /var/tmp/*
RUN apt-get update
RUN apt-get upgrade -y --no-install-recommends
RUN apt-get install -y gcc g++
RUN pip3 install --no-cache-dir --upgrade --requirement requirements.txt
RUN apt-get --purge autoremove gcc g++
RUN apt-get clean
RUN apt-get update
RUN apt-get check
RUN apt-get -f install
RUN apt-get autoclean
RUN rm -rf /tmp/* /var/tmp/*

# Keeps Python from generating .pyc files in the container
ENV PYTHONDONTWRITEBYTECODE=1
Expand Down

0 comments on commit 73b6fc9

Please sign in to comment.