lint: Fix DL3006, SC2086, DL3009, DL3020 (hadolint)

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2018-03-10 12:29:38 +01:00
parent ab5c172372
commit 5f8dea05e5
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -1,4 +1,4 @@
FROM debian FROM debian:stretch
LABEL maintainer Knut Ahlers <knut@ahlers.me> LABEL maintainer Knut Ahlers <knut@ahlers.me>
@ -10,14 +10,15 @@ RUN set -ex \
&& apt-get update \ && apt-get update \
&& apt-get install -y curl bzip2 ca-certificates --no-install-recommends \ && apt-get install -y curl bzip2 ca-certificates --no-install-recommends \
&& curl -sSfLo teamspeak3-server_linux-amd64.tar.bz2 \ && curl -sSfLo teamspeak3-server_linux-amd64.tar.bz2 \
http://dl.4players.de/ts/releases/${TEAMSPEAK_VERSION}/teamspeak3-server_linux_amd64-${TEAMSPEAK_VERSION}.tar.bz2 \ "http://dl.4players.de/ts/releases/${TEAMSPEAK_VERSION}/teamspeak3-server_linux_amd64-${TEAMSPEAK_VERSION}.tar.bz2" \
&& echo "${TEAMSPEAK_SHA256} *teamspeak3-server_linux-amd64.tar.bz2" | sha256sum -c - \ && echo "${TEAMSPEAK_SHA256} *teamspeak3-server_linux-amd64.tar.bz2" | sha256sum -c - \
&& tar -C /opt -xjf teamspeak3-server_linux-amd64.tar.bz2 \ && tar -C /opt -xjf teamspeak3-server_linux-amd64.tar.bz2 \
&& rm teamspeak3-server_linux-amd64.tar.bz2 \ && rm teamspeak3-server_linux-amd64.tar.bz2 \
&& apt-get purge -y curl bzip2 && apt-get autoremove -y \ && apt-get purge -y curl bzip2 && apt-get autoremove -y \
&& rm -r /var/lib/apt/lists/* && apt-get clean \
&& rm -rf /var/lib/apt/lists/*
ADD docker-ts3.sh /opt/docker-ts3.sh COPY docker-ts3.sh /opt/docker-ts3.sh
# Inject a Volume for any TS3-Data that needs to be persisted or to be accessible from the host. (e.g. for Backups) # Inject a Volume for any TS3-Data that needs to be persisted or to be accessible from the host. (e.g. for Backups)
VOLUME ["/teamspeak3"] VOLUME ["/teamspeak3"]