Skip to content

Commit 80663b1

Browse files
authored
[Bugfix:Autograding] CSCI4270 Missing Packages (#37)
Running the autograder using the CSCI4270 Docker image results in errors due to libsqlite being purged after installation: <img width="1060" height="41" alt="image" src="https://github.com/user-attachments/assets/0cb63b70-7f48-423b-8f83-8adad265a13b" /> I have explicitly added libsqlite so that it does not get auto-purged. I also added sci-kit learn, reverted opencv back to headless, and reduced the pytorch dependency to be CPU-only.
1 parent d172fe8 commit 80663b1

File tree

1 file changed

+17
-16
lines changed

1 file changed

+17
-16
lines changed

dockerfiles/csci4270/spring26/Dockerfile

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,18 @@ FROM ubuntu:22.04
22

33
ARG TARGETPLATFORM
44

5+
# runtime dependencies
56
RUN apt-get update \
6-
&& apt-get -y --no-install-recommends install \
7-
grep \
8-
libseccomp-dev \
9-
libseccomp2 \
10-
procps \
11-
libgl1 \
12-
libglib2.0-0 \
7+
&& apt-get -y --no-install-recommends install \
8+
grep \
9+
libseccomp-dev \
10+
libseccomp2 \
11+
procps \
12+
ca-certificates \
13+
netbase \
14+
libgl1 \
15+
libglib2.0-0 \
16+
libsqlite3-0 \
1317
&& rm -rf /var/lib/apt/lists/*
1418
#
1519
# Source: https://github.com/docker-library/python/blob/master/3.6/stretch/slim/Dockerfile
@@ -21,13 +25,6 @@ ENV PATH=/usr/local/bin:$PATH
2125
# http://bugs.python.org/issue19846
2226
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
2327
ENV LANG=C.UTF-8
24-
25-
# runtime dependencies
26-
RUN apt-get update && apt-get install -y --no-install-recommends \
27-
ca-certificates \
28-
netbase \
29-
&& rm -rf /var/lib/apt/lists/*
30-
3128
ENV GPG_KEY=64E628F8D684696D
3229
ENV PYTHON_VERSION=3.11.14
3330

@@ -143,10 +140,14 @@ RUN set -ex; \
143140
pandas \
144141
matplotlib \
145142
scipy \
146-
opencv-python \
143+
scikit-learn \
144+
opencv-python-headless \
145+
jupyter; \
146+
pip3 install --no-cache-dir \
147147
torch \
148148
torchvision \
149-
jupyter; \
149+
--index-url https://download.pytorch.org/whl/cpu; \
150+
\
150151
pip3 uninstall --yes pip setuptools
151152

152153
# Necessary as Submitty does path expansion of commands in compiling a homework,

0 commit comments

Comments
 (0)