Skip to content

Commit b909399

Browse files
committed
fix: correct syntax error in Dockerfile RUN command
- Remove double && operator that caused syntax error - Split echo command to avoid newline character issues - Remove inline comments that broke command continuations - Ensure proper shell command chaining
1 parent b40cf13 commit b909399

2 files changed

Lines changed: 6 additions & 10 deletions

File tree

Dockerfile

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,12 @@ COPY --from=downloader /etc/apt/sources.list.d/openspp.list /etc/apt/sources.lis
4949
RUN apt-get update && \
5050
apt-get install -y --no-install-recommends \
5151
ca-certificates \
52-
&& apt-get update && \
53-
# Create fake systemctl for Docker installation \
54-
&& echo '#!/bin/sh\nexit 0' > /usr/bin/systemctl \
52+
&& apt-get update \
53+
&& echo '#!/bin/sh' > /usr/bin/systemctl \
54+
&& echo 'exit 0' >> /usr/bin/systemctl \
5555
&& chmod +x /usr/bin/systemctl \
56-
# Install OpenSPP package \
5756
&& apt-get install -y --no-install-recommends \
5857
openspp-17-daily \
59-
# Remove fake systemctl after installation \
6058
&& rm -f /usr/bin/systemctl \
6159
&& apt-get clean \
6260
&& rm -rf /var/lib/apt/lists/*

Dockerfile.slim

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,12 @@ COPY --from=downloader /etc/apt/sources.list.d/openspp.list /etc/apt/sources.lis
4949
RUN apt-get update && \
5050
apt-get install -y --no-install-recommends \
5151
ca-certificates \
52-
&& apt-get update && \
53-
# Create fake systemctl for Docker installation \
54-
&& echo '#!/bin/sh\nexit 0' > /usr/bin/systemctl \
52+
&& apt-get update \
53+
&& echo '#!/bin/sh' > /usr/bin/systemctl \
54+
&& echo 'exit 0' >> /usr/bin/systemctl \
5555
&& chmod +x /usr/bin/systemctl \
56-
# Install OpenSPP package \
5756
&& apt-get install -y --no-install-recommends \
5857
openspp-17-daily \
59-
# Remove fake systemctl after installation \
6058
&& rm -f /usr/bin/systemctl \
6159
&& apt-get clean \
6260
&& rm -rf /var/lib/apt/lists/*

0 commit comments

Comments
 (0)