Skip to content

Commit

Permalink
Remove test code from docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
theyosh committed Jan 6, 2024
1 parent dade153 commit 9978890
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,12 @@ RUN pip install --upgrade pip==23.3.2 && pip install --upgrade wheel==0.42.0
COPY requirements.txt .
# requirements are slightly different for docker
RUN sed -i 's/numpy==.*/numpy==1.21.4/g' requirements.txt \
&& pip install smbus==1.1.post2 \
&& pip install -r requirements.txt --extra-index-url https://www.piwheels.org/simple \
&& find /opt/venv -type d -name "__pycache__" -exec rm -r {} + \
&& find /opt/venv -type f -name "*.pyc" -delete \
&& find /opt/venv -type d -name ".git" -exec rm -r {} +
&& find /opt/venv -type d -name "test*" | xargs rm -rf \
&& find /opt/venv -type d -name "__pycache__" | xargs rm -rf \
&& find /opt/venv -type d -name ".git" | xargs rm -rf \
&& find /opt/venv -type f -name "*.pyc" -delete

WORKDIR /TerrariumPI
# Just clone the libraries, ignore docker cache...
Expand Down

0 comments on commit 9978890

Please sign in to comment.