-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
53 lines (42 loc) · 920 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#
# AMP Dockerfile
#
# https://github.com/othrayte/docker-cc-amp
#
# Pull base image.
FROM debian:jessie-backports
# Install dependencies
RUN apt-get update && apt-get install -y \
lib32gcc1 \
coreutils \
screen \
tmux \
socat \
unzip \
git \
wget \
openjdk-8-jre \
&& rm -rf /var/lib/apt/lists/*
RUN \
groupadd -r AMP && \
useradd -r -g AMP -d /home/AMP -m AMP && \
mkdir /home/AMP/AMP && \
cd /home/AMP/AMP && \
wget http://cubecoders.com/Downloads/ampinstmgr.zip && \
unzip ampinstmgr.zip && \
rm -fi --interactive=never ampinstmgr.zip
# Define working directory.
WORKDIR /home/AMP/AMP
COPY start.sh /home/AMP/AMP/
RUN \
mkdir /ampdata && \
chown AMP:AMP /ampdata && \
chown AMP:AMP ./start.sh && \
chmod +x ./start.sh
VOLUME ["/ampdata"]
USER AMP
# Define default command.
ENTRYPOINT ["./start.sh"]
RUN ln -s /ampdata /home/AMP/.ampdata
# Expose ports.
EXPOSE 8080