forked from jasongwartz/kerbal-ckan-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
28 lines (21 loc) · 763 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
FROM mono:6.8
LABEL maintainer="[email protected]"
VOLUME /kerbal
WORKDIR /kerbal
# Install packages
RUN set -ex && \
apt-get update -qq && \
apt-get install -qq wget sudo libgtk2.0-bin && \
rm -rf /var/lib/apt/lists/*
COPY motd /etc/motd
COPY entry.sh /etc/entry.sh
# Install CKAN
RUN set -ex && \
mkdir -p /opt/ckan /kerbal && \
wget -qO /opt/ckan/ckan.exe https://github.com/KSP-CKAN/CKAN/releases/latest/download/ckan.exe && \
echo 'mono /opt/ckan/ckan.exe $@' > /usr/local/bin/ckan && \
chmod +x /usr/local/bin/ckan && \
chmod +x /etc/entry.sh && \
echo "alias update-ckan='wget -O /opt/ckan/ckan.exe https://github.com/KSP-CKAN/CKAN/releases/latest/download/ckan.exe'" >> /etc/bash.bashrc
ENTRYPOINT ["/etc/entry.sh"]
CMD ["bash"]