29 lines
699 B
Docker
29 lines
699 B
Docker
|
FROM cm2network/steamcmd:latest
|
||
|
|
||
|
LABEL org.opencontainers.image.source=https://git.kapelle.org/niklas/arma3-docker
|
||
|
|
||
|
COPY entrypoint.sh /home/steam/entrypoint.sh
|
||
|
|
||
|
RUN mkdir -p /home/steam/server && \
|
||
|
chown steam:steam /home/steam/server && \
|
||
|
bash -c 'mkdir -p /home/steam/volumes/{config,missions,mods,servermods}' && \
|
||
|
chown steam:steam -R /home/steam/volumes/
|
||
|
|
||
|
USER steam
|
||
|
|
||
|
VOLUME /home/steam/server
|
||
|
VOLUME /home/steam/volumes/config
|
||
|
VOLUME /home/steam/volumes/missions
|
||
|
VOLUME /home/steam/volumes/mods
|
||
|
VOLUME /home/steam/volumes/servermods
|
||
|
|
||
|
WORKDIR /home/steam/server
|
||
|
|
||
|
EXPOSE 2302/udp
|
||
|
EXPOSE 2303/udp
|
||
|
EXPOSE 2304/udp
|
||
|
EXPOSE 2305/udp
|
||
|
EXPOSE 2306/udp
|
||
|
|
||
|
ENTRYPOINT /home/steam/entrypoint.sh
|