Commit 92a6e5d8 authored by nanahira's avatar nanahira

local motd

parent 3f9b2292
......@@ -4,7 +4,7 @@ FROM node:12-stretch-slim
# apt
#COPY sources.list /etc/apt/sources.list
RUN apt update && \
env DEBIAN_FRONTEND=noninteractive apt install -y build-essential libevent-dev libsqlite3-dev mono-complete p7zip-full gettext-base curl && \
env DEBIAN_FRONTEND=noninteractive apt install -y build-essential libevent-dev libsqlite3-dev mono-complete p7zip-full gettext-base && \
rm -rf /var/lib/apt/lists/* && \
useradd -ms /bin/bash container
......@@ -14,6 +14,7 @@ ENV HOME /home/container
WORKDIR /home/container
COPY ./motd.txt /home/motd.txt
COPY ./entrypoint.sh /entrypoint.sh
CMD ["/bin/bash", "/entrypoint.sh"]
......@@ -2,7 +2,7 @@
cd /home/container
# motd
curl https://minio.mycard.moe:9000/mycard/srvpro/motd.txt | envsubst
cat /home/motd.txt | envsubst
# Replace Startup Variables
MODIFIED_STARTUP=`eval echo $(echo ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g')`
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment