-
Notifications
You must be signed in to change notification settings - Fork 15
/
AMPStandaloneDockerfile
36 lines (30 loc) · 1.05 KB
/
AMPStandaloneDockerfile
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
# AMP Standalone Dockerfile
FROM debian:10-slim
EXPOSE 8080-8180
EXPOSE 5678-5688
EXPOSE 7777-7877
EXPOSE 21025-21125
EXPOSE 25565-25665
EXPOSE 27015-27115
EXPOSE 28015-28115
EXPOSE 34197-34297
ENV ANSWER_AMPUSER=admin
ENV ANSWER_AMPPASS=changeme123
RUN export LANG=en_US.UTF-8 && \
export LANGUAGE=en_US:en && \
export LC_ALL=en_US.UTF-8 && \
export DEBIAN_FRONTEND=noninteractive && \
export ANSWER_SYSPASSWORD=$(cat /proc/sys/kernel/random/uuid) && \
export USE_ANSWERS=1 && \
export SKIP_INSTALL=1 && \
mkdir /usr/share/man/man1 && \
apt-get update && \
apt-get install -y wget locales && \
sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \
dpkg-reconfigure --frontend=noninteractive locales && \
update-locale LANG=en_US.UTF-8 && \
bash -c "bash <(wget -qO- getamp.sh)" && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
VOLUME ["/home/amp"]
ENTRYPOINT (su -l amp -c "ampinstmgr quick '${ANSWER_AMPUSER}' '${ANSWER_AMPPASS}' && ampinstmgr view ADS true") || bash || tail -f /dev/null