Update Dockerfile

This commit is contained in:
fithwum
2020-06-08 12:40:26 -07:00
parent a9cc76f8d5
commit 41241f665b

View File

@@ -1,22 +1,20 @@
FROM alpine:latest FROM node:12-alpine
MAINTAINER fithwum
# URL's for files ENV UID=99
ARG INSTALL_SCRIPT=https://raw.githubusercontent.com/fithwum/teamspeak-alpine/master/files/Install_Script.sh ENV GUID=100
# Install dependencies and folder creation RUN deluser node
RUN apk update && apk add --no-cache ca-certificates libstdc++ su-exec bash-completion tar \ RUN adduser -u $UID -D foundry
&& mkdir -p /ts3server /ts3temp /ts3temp/inifiles /ts3temp/serverfiles \
&& chmod 777 -R /ts3server /ts3temp \
&& chown 99:100 -R /ts3server /ts3temp
ADD "${INSTALL_SCRIPT}" /ts3temp
RUN chmod +x /ts3temp/Install_Script.sh
# directory where data is stored USER foundry
VOLUME /ts3server RUN mkdir -p /home/foundry/data
RUN mkdir -p /home/foundry/app
# 9987 default voice, 10011 server query, 30033 file transport WORKDIR /home/foundry/data
EXPOSE 9987/udp 10011/tcp 30033/tcp COPY --chown=$UID /foundrydata/ .
# Run command WORKDIR /home/foundry/app
CMD [ "/bin/sh", "/ts3temp/Install_Script.sh" ] COPY /foundryvtt/ .
EXPOSE 30000
CMD ["node", "/home/foundry/app/resources/app/main.js", "--headless", "--dataPath=/home/foundry/data" ]