Update Dockerfile

This commit is contained in:
fithwum
2020-06-21 21:40:41 -07:00
parent ccd1dded5e
commit 4ef6126976

View File

@@ -4,16 +4,18 @@ MAINTAINER fithwum
ENV UID=99 ENV UID=99
ENV GUID=100 ENV GUID=100
RUN useradd -ms /bin/bash foundry
# Install dependencies and folder creation # Install dependencies and folder creation
RUN apk update && apk add --no-cache ca-certificates libstdc++ su-exec bash-completion tar nodejs npm \ RUN apk update && apk add --no-cache ca-certificates libstdc++ su-exec bash-completion tar nodejs npm \
&& mkdir -p /foundry /ftemp /ftemp/fvtt /ftemp/data \ && mkdir -p /foundry /ftemp /foundry/fvtt /foundry/data \
&& chmod 777 -R /foundry \ && chmod 777 -R /foundry \
&& chown 99:100 -R /foundry && chown 99:100 -R /foundry
USER foundry
# directory where data is stored # directory where data is stored
VOLUME /foundry VOLUME /foundry
RUN mv /ftemp/fvtt /foundry/fvtt \
&& mv /ftemp/data /foundry/data
# TCP Port # TCP Port
EXPOSE 30000 EXPOSE 30000