-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
24 lines (18 loc) · 862 Bytes
/
Dockerfile
File metadata and controls
24 lines (18 loc) · 862 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM alpine:latest
MAINTAINER debuggerboy
#ENV PATH /app/mistserver:$PATH
ENV MISTSERVERSRC=https://github.com/DDVTECH/mistserver/archive/2.13.tar.gz
# install basics
RUN apk --no-cache update
RUN apk --no-cache add ca-certificates wget nano vim bash file binutils musl-utils libstdc++ libgcc cmake git make gcc musl-dev g++ mbedtls-dev libexecinfo-dev
RUN mkdir -p /src/mistserver /config /media
# install mistserver
RUN wget -qO- ${MISTSERVERSRC} | tar xvz -C /src/mistserver
RUN cd /src/mistserver/mistserver-2.13 && cmake . && make && make install
# clean up
RUN rm -rf /var/cache/apk/* /tmp/* /var/tmp/*
VOLUME /config /media
EXPOSE 4242 8181 1935 554
#CMD ["MistController -c /config/server.conf"]
#CMD ['echo "n" | /usr/bin/MistController -c /config/server.conf']
CMD ["/bin/bash", "-c", "echo 'n' | /usr/bin/MistController -c /config/server.conf"]