-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
39 lines (27 loc) · 939 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
FROM ubuntu:bionic
ARG maps_release_tag=latest
ENV MAPS_RELEASE_TAG=$maps_release_tag
USER root
ENV EQEMU_HOME=/home/eqemu
ENV EQEMU_MAPS_DIR=/home/eqemu/maps
ENV DEBIAN_FRONTEND=noninteractive
# Install basic packages
RUN apt-get update -y && \
apt-get install -y bash curl wget git
# Set eqemu user
RUN groupadd eqemu && \
useradd -g eqemu -d $EQEMU_HOME eqemu && \
mkdir -p $EQEMU_HOME && \
mkdir -p $EQEMU_MAPS_DIR
# Clone quests
RUN git clone https://github.com/Akkadius/EQEmuMaps.git $EQEMU_MAPS_DIR
RUN if [ "$MAPS_RELEASE_TAG" != "latest" ]; then cd $EQEMU_MAPS_DIR; git fetch --all --tags --prune; git checkout tags/$MAPS_RELEASE_TAG; fi;
# Cleanup unneeded packages
RUN apt-get remove -y git wget curl && \
apt-get autoremove -y && \
apt-get clean cache
RUN chown -R eqemu:eqemu /home/eqemu
WORKDIR /home/eqemu
USER eqemu
VOLUME /home/eqemu/maps
ENTRYPOINT ["/usr/bin/tail", "-f", "/dev/null"]