-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
42 lines (30 loc) · 1.05 KB
/
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
40
41
42
FROM ubuntu:bionic
ARG peq_release_tag=latest
ENV PEQ_RELEASE_TAG=$peq_release_tag
USER root
ENV EQEMU_HOME=/home/eqemu
ENV PEQ_QUESTS_DIR=/home/eqemu/quests
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 $PEQ_QUESTS_DIR
# Clone quests
RUN git clone https://github.com/ProjectEQ/projecteqquests.git $PEQ_QUESTS_DIR
RUN if [ "$PEQ_RELEASE_TAG" != "latest" ]; then cd $PEQ_QUESTS_DIR; git fetch --all --tags --prune; git checkout tags/$PEQ_RELEASE_TAG; fi;
# Cleanup unneeded packages
RUN apt-get remove -y git wget curl && \
apt-get autoremove -y && \
apt-get clean cache
RUN mkdir -p /home/eqemu/plugins && \
cp -R /home/eqemu/quests/plugins/* /home/eqemu/plugins && \
chown -R eqemu:eqemu /home/eqemu
WORKDIR /home/eqemu
USER eqemu
VOLUME /home/eqemu/quests
VOLUME /home/eqemu/plugins
ENTRYPOINT ["/usr/bin/tail", "-f", "/dev/null"]