Skip to content

Commit 78639cd

Browse files
committed
Choose Debian Trixie as Docker base image
1 parent 1759dd0 commit 78639cd

File tree

3 files changed

+34
-4
lines changed

3 files changed

+34
-4
lines changed

.github/workflows/docker-image.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,7 @@ jobs:
1515
steps:
1616
- uses: actions/checkout@v3
1717
- name: Build the Docker image
18-
run: docker build . --file Dockerfile --tag my-image-name:$(date +%s)
18+
run: |
19+
cp .github/workflows/ping .
20+
docker build . --file Dockerfile --tag my-image-name:$(date +%s)
21+
- uses: mxschmitt/action-tmate@v3

.github/workflows/docker-publish.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ jobs:
2828

2929
- name: Run tests
3030
run: |
31+
cp .github/workflows/ping .
3132
if [ -f docker-compose.test.yml ]; then
3233
docker-compose --file docker-compose.test.yml build
3334
docker-compose --file docker-compose.test.yml run sut

Dockerfile

Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,39 @@
1-
FROM python:3.10-slim
1+
FROM debian:trixie
22

33
COPY . /app
44
WORKDIR /app
55

6-
RUN apt-get update && apt-get install --no-install-recommends -y git graphviz cmake\
6+
COPY ping /usr/bin/ping
7+
RUN chmod +x /usr/bin/ping
8+
9+
RUN apt-get update \
10+
&& apt-get install --no-install-recommends -y git graphviz cmake \
11+
build-essential gcc-13 g++-13 ca-certificates zlib1g-dev libncurses5-dev \
12+
libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev \
13+
libsqlite3-dev wget libbz2-dev \
714
&& apt-get clean \
815
&& rm -rf /var/lib/apt/lists/*
916

10-
RUN pip install pipenv && pipenv install --skip-lock
17+
RUN wget https://www.python.org/ftp/python/3.10.0/Python-3.10.0.tgz \
18+
&& tar -xvf Python-3.10.0.tgz \
19+
&& cd Python-3.10.0 \
20+
&& ./configure \
21+
&& make \
22+
&& make altinstall \
23+
&& cd - \
24+
&& ln -s /usr/local/bin/python3.10 /usr/bin/python \
25+
&& ln -s /usr/local/bin/pip3.10 /usr/bin/pip
26+
27+
ENV CC=gcc-13 CXX=g++-13
28+
RUN git clone https://github.com/Fare9/Shuriken-Analyzer.git \
29+
&& cd Shuriken-Analyzer \
30+
&& cmake -S . -B build/ -DCMAKE_BUILD_TYPE=Release \
31+
&& cmake --build build/ -j \
32+
&& cmake --install build/ \
33+
&& cd -
34+
35+
RUN pip install --upgrade pipenv pip \
36+
&& pipenv install --skip-lock
1137
RUN pipenv run freshquark
1238

1339
WORKDIR /app/quark

0 commit comments

Comments
 (0)