Use 'tar -C' instead of 'cd && tar' to extract the server

This commit is contained in:
Nathan Caldwell 2015-09-20 17:58:48 -06:00
parent 8bafb174d2
commit b9a878e508

View file

@ -17,7 +17,7 @@ VOLUME ["/teamspeak3"]
# Download TS3 file and extract it into /opt.
ADD ${TEAMSPEAK_URL} /opt/
RUN cd /opt && tar -xzf /opt/teamspeak3-server_linux-amd64-3*.tar.gz
RUN tar -C /opt -xzf /opt/teamspeak3-server_linux-amd64-3*.tar.gz
ADD /scripts/ /opt/scripts/
RUN chmod -R 774 /opt/scripts/