Add Mono yolk
This commit is contained in:
11
Mono/Dockerfile
Normal file
11
Mono/Dockerfile
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
FROM mono
|
||||||
|
ENV DEBIAN_FRONTEND=noninteractive \
|
||||||
|
HOME=/home/container \
|
||||||
|
USER=container
|
||||||
|
COPY entrypoint.sh /entrypoint.sh
|
||||||
|
WORKDIR ${HOME}
|
||||||
|
RUN apt-get update && apt-get upgrade -y && apt-get install -y --no-install-recommends iproute2 && \
|
||||||
|
useradd ${USER} -d ${HOME} && \
|
||||||
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
USER ${USER}
|
||||||
|
ENTRYPOINT ["/bin/bash", "/entrypoint.sh"]
|
12
Mono/entrypoint.sh
Normal file
12
Mono/entrypoint.sh
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
cd $HOME
|
||||||
|
|
||||||
|
# Make internal Docker IP address available to processes.
|
||||||
|
export INTERNAL_IP=`ip route get 1 | awk '{print $NF;exit}'`
|
||||||
|
|
||||||
|
# Replace Startup Variables
|
||||||
|
MODIFIED_STARTUP=`eval echo $(echo ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g')`
|
||||||
|
echo ":${HOME}$ ${MODIFIED_STARTUP}"
|
||||||
|
|
||||||
|
# Run the Server
|
||||||
|
${MODIFIED_STARTUP}
|
Reference in New Issue
Block a user