1
0

fix(Dockerfile): fail build when apt-get fails

This commit is contained in:
Pim van den Berg 2022-09-17 14:38:26 +02:00
parent 69e3267bf2
commit 34ca62efff
2 changed files with 6 additions and 6 deletions

View File

@ -1,16 +1,16 @@
FROM debian:bookworm-slim FROM debian:bookworm-slim
RUN set -eux; \ RUN set -eux && \
apt-get update; \ apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get upgrade -y; \ DEBIAN_FRONTEND=noninteractive apt-get upgrade -y && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
openssh-server \ openssh-server \
curl \ curl \
telnet \ telnet \
net-tools \ net-tools \
screen \ screen \
; \ && \
rm -rf /var/lib/apt/lists/*; \ rm -rf /var/lib/apt/lists/* && \
rm /etc/ssh/ssh_host_*key* rm /etc/ssh/ssh_host_*key*
ADD start.sh / ADD start.sh /

View File

@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh
set -x set -ex
IMAGE=pommib/jumpbox:latest IMAGE=pommib/jumpbox:latest
docker pull $IMAGE docker pull $IMAGE