File tree Expand file tree Collapse file tree 3 files changed +11
-10
lines changed Expand file tree Collapse file tree 3 files changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ FROM debian:bookworm-slim
3
3
RUN \
4
4
apt-get update && \
5
5
apt-get install curl make ca-certificates xz-utils -y --no-install-recommends && \
6
- rm -rf /var/lib/apt/lists/* && \
7
6
curl -sSL https://get.haskellstack.org/ | sh
8
7
9
8
WORKDIR /work
Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ RUN apt-get update \
5
5
&& apt-get install -y git build-essential unzip curl libjson-perl libdigest-crc-perl
6
6
7
7
# install perl runtime for kaitai struct
8
- WORKDIR /tmp
9
8
RUN \
9
+ cd /tmp \
10
10
&& curl -LO https://github.com/kaitai-io/kaitai_struct_perl_runtime/archive/refs/tags/0.10.zip \
11
11
&& unzip 0.10.zip \
12
12
&& cd kaitai_struct_perl_runtime-0.10 \
@@ -15,10 +15,12 @@ RUN \
15
15
&& rm -rf /tmp/*
16
16
17
17
WORKDIR /work
18
- COPY . /work
18
+ ADD . /work
19
19
20
- RUN pip3 install -r /work/setup_requirements.txt \
21
- && pip3 install -r /work/requirements.txt \
22
- && pip3 install kaitaistruct \
23
- && pip3 install wheel setuptools '.[sbp2json]'
20
+ RUN pip3 install -r /work/setup_requirements.txt
21
+ RUN pip3 install -r /work/requirements.txt
22
+ RUN pip3 install kaitaistruct
24
23
24
+ RUN pip3 install wheel setuptools
25
+
26
+ RUN pip3 install '.[sbp2json]'
Original file line number Diff line number Diff line change @@ -9,11 +9,11 @@ ARG SCCACHE_URL=https://github.com/mozilla/sccache/releases/download/${SCCACHE_F
9
9
ENV SCCACHE_CACHE_SIZE=100G
10
10
ENV SCCACHE_DIR=/opt/sccache
11
11
12
- RUN mkdir -p " $SCCACHE_DIR"
12
+ RUN mkdir -p $SCCACHE_DIR
13
13
14
14
RUN \
15
- apt-get update \
16
- && apt-get install -y build-essential curl libssl-dev make musl-tools pkg-config \
15
+ apt-get update \
16
+ && apt-get install -y libssl-dev pkg-config curl build-essential make musl-tools \
17
17
&& curl -sSL -o /tmp/sccache.tgz "${SCCACHE_URL}" \
18
18
&& mkdir /tmp/sccache \
19
19
&& tar --strip-components=1 -C /tmp/sccache -xzf /tmp/sccache.tgz \
You can’t perform that action at this time.
0 commit comments