fix(Dockerfile): fail build when apt-get fails
This commit is contained in:
parent
69e3267bf2
commit
98c9e7f9f9
@ -1,16 +1,16 @@
|
||||
FROM debian:bookworm-slim
|
||||
|
||||
RUN set -eux; \
|
||||
apt-get update; \
|
||||
DEBIAN_FRONTEND=noninteractive apt-get upgrade -y; \
|
||||
apt-get update && \
|
||||
DEBIAN_FRONTEND=noninteractive apt-get upgrade -y && \
|
||||
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
|
||||
openssh-server \
|
||||
curl \
|
||||
telnet \
|
||||
net-tools \
|
||||
screen \
|
||||
; \
|
||||
rm -rf /var/lib/apt/lists/*; \
|
||||
&& \
|
||||
rm -rf /var/lib/apt/lists/* && \
|
||||
rm /etc/ssh/ssh_host_*key*
|
||||
|
||||
ADD start.sh /
|
||||
|
Loading…
Reference in New Issue
Block a user