mirror of
https://github.com/luzifer-docker/teamspeak3.git
synced 2024-12-20 14:41:17 +00:00
Update Dockerfile
This commit is contained in:
parent
3c2f2b11e2
commit
e9773099b5
1 changed files with 26 additions and 3 deletions
29
Dockerfile
29
Dockerfile
|
@ -1,12 +1,35 @@
|
||||||
|
###############################################
|
||||||
|
# Ubuntu with added Teamspeak 3 Server.
|
||||||
|
# Uses SQLite Database on default.
|
||||||
|
###############################################
|
||||||
|
|
||||||
|
# Using latest Ubuntu image as base
|
||||||
FROM ubuntu
|
FROM ubuntu
|
||||||
|
|
||||||
# Set some variables.
|
MAINTAINER Alex
|
||||||
|
|
||||||
|
## Set some variables for override.
|
||||||
|
#
|
||||||
ENV TEAMSPEAK_URL http://dl.4players.de/ts/releases/3.0.10.3/teamspeak3-server_linux-amd64-3.0.10.3.tar.gz
|
ENV TEAMSPEAK_URL http://dl.4players.de/ts/releases/3.0.10.3/teamspeak3-server_linux-amd64-3.0.10.3.tar.gz
|
||||||
|
|
||||||
|
|
||||||
|
# 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"]
|
||||||
|
|
||||||
|
# Update app-get index and install curl to download TS3 file.
|
||||||
RUN apt-get update && apt-get install -y curl
|
RUN apt-get update && apt-get install -y curl
|
||||||
RUN cd /opt && curl -sL ${TEAMSPEAK_URL} | tar xz
|
|
||||||
|
|
||||||
ENTRYPOINT /opt/teamspeak3-server_linux-amd64/ts3server_minimal_runscript.sh
|
# Download TS3 file and extract it into /opt. Also remove the compressed file after extracting.
|
||||||
|
RUN cd /opt && curl -sL ${TEAMSPEAK_URL} | tar xz && rm teamspeak3-server_linux-amd64-3.0.10.3.tar.gz
|
||||||
|
|
||||||
|
# TODO create symlink for the sqlite db
|
||||||
|
|
||||||
|
# Use CMD to set some defaults, for example mapping some files/directorys to the injected volume.
|
||||||
|
# These can still be overridden on container-creation.
|
||||||
|
CMD ["logpath=/teamspeak3/logs/", "licensepath=/teamspeak3/", "inifile=/teamspeak3/ts3server.ini", "query_ip_whitelist=/teamspeak3/query_ip_whitelist.txt", "query_ip_backlist=/teamspeak3/query_ip_blacklist.txt"]
|
||||||
|
|
||||||
|
# Specify an entrypoint because this container should act like a isolated "application" and only serve TS3.
|
||||||
|
ENTRYPOINT ["/opt/teamspeak3-server_linux-amd64/ts3server_minimal_runscript.sh"]
|
||||||
|
|
||||||
|
# Expose the Standard TS3 port. TODO check override possible?
|
||||||
EXPOSE 9987/udp
|
EXPOSE 9987/udp
|
||||||
|
|
Loading…
Reference in a new issue