mirror of
https://github.com/luzifer-docker/teamspeak3.git
synced 2024-11-13 22:22:43 +00:00
Update Dockerfile
This commit is contained in:
parent
3bd671df36
commit
6223531681
1 changed files with 6 additions and 5 deletions
11
Dockerfile
11
Dockerfile
|
@ -12,7 +12,6 @@ MAINTAINER Alex
|
||||||
# Download Link of TS3 Server
|
# Download Link of TS3 Server
|
||||||
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)
|
# 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"]
|
||||||
|
|
||||||
|
@ -23,16 +22,18 @@ RUN apt-get update && apt-get install -y curl
|
||||||
RUN cd /opt && curl -sL ${TEAMSPEAK_URL} | tar xz
|
RUN cd /opt && curl -sL ${TEAMSPEAK_URL} | tar xz
|
||||||
|
|
||||||
# create symlink for the sqlite db
|
# create symlink for the sqlite db
|
||||||
RUN cd /opt/teamspeak3-server_linux-amd64 && ln -s ts3server.sqlitedb "/teamspeak3/ts3server.sqlitedb"
|
RUN cd /opt/teamspeak3-server_linux-amd64 && ln -s ts3server.sqlitedb /teamspeak3/ts3server.sqlitedb
|
||||||
|
|
||||||
RUN cd /teamspeak3 && touch ts3server.sqlitedb
|
RUN cd /teamspeak3 && touch ts3server.sqlitedb
|
||||||
# TODO symlink for files-dir
|
|
||||||
|
# symlink for files-dir
|
||||||
|
RUN cd /opt/teamspeak3-server_linux-amd64 && ln -s files /teamspeak3/files
|
||||||
|
|
||||||
# Use CMD to set some defaults, for example mapping some files/directorys to the injected volume.
|
# Use CMD to set some defaults, for example mapping some files/directorys to the injected volume.
|
||||||
#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"]
|
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.
|
# 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 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"
|
ENTRYPOINT ["/opt/teamspeak3-server_linux-amd64/ts3server_minimal_runscript.sh"]
|
||||||
|
|
||||||
# Expose the Standard TS3 port.
|
# Expose the Standard TS3 port.
|
||||||
EXPOSE 9987/udp
|
EXPOSE 9987/udp
|
||||||
|
|
Loading…
Reference in a new issue