Skip to content

Commit cb6f53c

Browse files
committed
fix: moved install command to the correct location (in Dockerfile not in script)
1 parent a54c9b9 commit cb6f53c

2 files changed

Lines changed: 8 additions & 7 deletions

File tree

Dockerfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,14 @@ RUN jlink \
3232
FROM debian:bookworm-slim AS runner
3333
WORKDIR /app
3434

35+
# Install system build tools, needed to build solver dependencies
36+
RUN apt-get update && apt-get install -y \
37+
build-essential \
38+
gcc \
39+
g++ \
40+
python3-dev \
41+
&& rm -rf /var/lib/apt/lists/*
42+
3543
COPY scripts scripts
3644

3745
# Install GAMS with conda python environment

scripts/ci-setup-solvers.sh

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,6 @@ set -e
77
# get base directory of the repository
88
REPO_DIR=$(dirname "$(dirname "$(readlink -f "$0")")")
99

10-
RUN apt-get update && apt-get install -y \
11-
build-essential \
12-
gcc \
13-
g++ \
14-
python3-dev \
15-
&& rm -rf /var/lib/apt/lists/*
16-
1710
# make sure to install to the gams conda env
1811
source /opt/conda/bin/activate gams
1912

0 commit comments

Comments
 (0)