Compare commits
1 commit
aa818b40f7
...
b2fda8b035
Author | SHA1 | Date | |
---|---|---|---|
b2fda8b035 |
2 changed files with 11 additions and 11 deletions
19
Dockerfile
19
Dockerfile
|
@ -1,18 +1,17 @@
|
||||||
FROM debian:stretch
|
FROM debian:buster
|
||||||
MAINTAINER none
|
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
apt-get update \
|
apt-get update \
|
||||||
&& apt-get install --yes python git python-pip libssl-dev libbz2-dev \
|
&& apt-get install --yes python3 git python3-pip libssl-dev libbz2-dev \
|
||||||
&& apt-get clean \
|
&& apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
|
||||||
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
|
&& pip3 install --no-cache-dir zeroc-ice \
|
||||||
&& pip install zeroc-ice
|
&& RUN useradd -U -d /mumo -m mumo
|
||||||
|
|
||||||
ADD bin/start.sh /tmp/start.sh
|
|
||||||
RUN chmod 755 /tmp/start.sh
|
|
||||||
VOLUME ["/data"]
|
VOLUME ["/data"]
|
||||||
|
|
||||||
RUN git clone https://github.com/mumble-voip/mumo.git
|
ADD bin/entrypoint.sh /entrypoint.sh
|
||||||
|
|
||||||
|
RUN git clone https://github.com/mumble-voip/mumo.git --depth 1
|
||||||
|
|
||||||
WORKDIR /mumo
|
WORKDIR /mumo
|
||||||
CMD ["/tmp/start.sh"]
|
CMD ["/entrypoint.sh"]
|
||||||
|
|
3
bin/start.sh → bin/entrypoint.sh
Normal file → Executable file
3
bin/start.sh → bin/entrypoint.sh
Normal file → Executable file
|
@ -22,4 +22,5 @@ cp -r /data/mumo.ini /mumo
|
||||||
cp -r /data/modules /mumo # TODO: Add from git
|
cp -r /data/modules /mumo # TODO: Add from git
|
||||||
cp -r /data/modules-available /mumo
|
cp -r /data/modules-available /mumo
|
||||||
cp -r /data/modules-enabled /mumo
|
cp -r /data/modules-enabled /mumo
|
||||||
exec /mumo/mumo.py
|
|
||||||
|
exec su mumo -c "python3 /mumo/mumo.py"
|
Loading…
Reference in a new issue