Prepared multi-arch builds
This commit is contained in:
parent
dba1def448
commit
4e098aaa0a
26
386/Dockerfile
Normal file
26
386/Dockerfile
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
FROM alpine:edge
|
||||||
|
|
||||||
|
# Whenever possible, install tools using the distro package manager
|
||||||
|
RUN apk add --no-cache tini ttyd socat nginx unzip openssl openssh ca-certificates && \
|
||||||
|
# Do some configuration for nginx
|
||||||
|
echo "daemon off;" >> /etc/nginx/nginx.conf && \
|
||||||
|
mkdir /run/nginx && \
|
||||||
|
echo "server { listen 80 default_server; root /var/www/localhost/htdocs; location / { try_files \$uri /index.html; } }" > /etc/nginx/conf.d/default.conf && \
|
||||||
|
echo "<html><head><title>Welcome to Nginx</title></head><body><h1>Nginx works!</h1></body></html>" > /var/www/localhost/htdocs/index.html && \
|
||||||
|
chown -R 0:82 /var/www/localhost/htdocs && \
|
||||||
|
# Download, install and configure ngrok
|
||||||
|
wget -q https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-386.zip && \
|
||||||
|
unzip ngrok-stable-linux-386.zip && \
|
||||||
|
mv ngrok /bin/ngrok && \
|
||||||
|
rm ngrok-stable-linux-386.zip && \
|
||||||
|
echo "web_addr: 0.0.0.0:4040" > /root/ngrok.yml && \
|
||||||
|
# Configure a nice terminal
|
||||||
|
echo "export PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '" >> /etc/profile && \
|
||||||
|
# Fake poweroff (stops the container from the inside by sending SIGTERM to PID 1)
|
||||||
|
echo "alias poweroff='kill 1'" >> /etc/profile
|
||||||
|
|
||||||
|
ENV TINI_KILL_PROCESS_GROUP=1
|
||||||
|
|
||||||
|
EXPOSE 7681 4040 80
|
||||||
|
ENTRYPOINT ["/sbin/tini", "--"]
|
||||||
|
CMD [ "ttyd", "-s", "3", "-t", "titleFixed=/bin/sh", "-t", "rendererType=webgl", "-t", "disableLeaveAlert=true", "/bin/sh", "-i", "-l" ]
|
26
arm64/Dockerfile
Normal file
26
arm64/Dockerfile
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
FROM alpine:edge
|
||||||
|
|
||||||
|
# Whenever possible, install tools using the distro package manager
|
||||||
|
RUN apk add --no-cache tini ttyd socat nginx unzip openssl openssh ca-certificates && \
|
||||||
|
# Do some configuration for nginx
|
||||||
|
echo "daemon off;" >> /etc/nginx/nginx.conf && \
|
||||||
|
mkdir /run/nginx && \
|
||||||
|
echo "server { listen 80 default_server; root /var/www/localhost/htdocs; location / { try_files \$uri /index.html; } }" > /etc/nginx/conf.d/default.conf && \
|
||||||
|
echo "<html><head><title>Welcome to Nginx</title></head><body><h1>Nginx works!</h1></body></html>" > /var/www/localhost/htdocs/index.html && \
|
||||||
|
chown -R 0:82 /var/www/localhost/htdocs && \
|
||||||
|
# Download, install and configure ngrok
|
||||||
|
wget -q https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-arm64.tgz && \
|
||||||
|
tar -zxf ngrok-stable-linux-arm64.tgz && \
|
||||||
|
mv ngrok /bin/ngrok && \
|
||||||
|
rm ngrok-stable-linux-arm64.tgz && \
|
||||||
|
echo "web_addr: 0.0.0.0:4040" > /root/ngrok.yml && \
|
||||||
|
# Configure a nice terminal
|
||||||
|
echo "export PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '" >> /etc/profile && \
|
||||||
|
# Fake poweroff (stops the container from the inside by sending SIGTERM to PID 1)
|
||||||
|
echo "alias poweroff='kill 1'" >> /etc/profile
|
||||||
|
|
||||||
|
ENV TINI_KILL_PROCESS_GROUP=1
|
||||||
|
|
||||||
|
EXPOSE 7681 4040 80
|
||||||
|
ENTRYPOINT ["/sbin/tini", "--"]
|
||||||
|
CMD [ "ttyd", "-s", "3", "-t", "titleFixed=/bin/sh", "-t", "rendererType=webgl", "-t", "disableLeaveAlert=true", "/bin/sh", "-i", "-l" ]
|
26
armv7/Dockerfile
Normal file
26
armv7/Dockerfile
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
FROM alpine:edge
|
||||||
|
|
||||||
|
# Whenever possible, install tools using the distro package manager
|
||||||
|
RUN apk add --no-cache tini ttyd socat nginx unzip openssl openssh ca-certificates && \
|
||||||
|
# Do some configuration for nginx
|
||||||
|
echo "daemon off;" >> /etc/nginx/nginx.conf && \
|
||||||
|
mkdir /run/nginx && \
|
||||||
|
echo "server { listen 80 default_server; root /var/www/localhost/htdocs; location / { try_files \$uri /index.html; } }" > /etc/nginx/conf.d/default.conf && \
|
||||||
|
echo "<html><head><title>Welcome to Nginx</title></head><body><h1>Nginx works!</h1></body></html>" > /var/www/localhost/htdocs/index.html && \
|
||||||
|
chown -R 0:82 /var/www/localhost/htdocs && \
|
||||||
|
# Download, install and configure ngrok
|
||||||
|
wget -q https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-arm.zip && \
|
||||||
|
unzip ngrok-stable-linux-arm.zip && \
|
||||||
|
mv ngrok /bin/ngrok && \
|
||||||
|
rm ngrok-stable-linux-arm.zip && \
|
||||||
|
echo "web_addr: 0.0.0.0:4040" > /root/ngrok.yml && \
|
||||||
|
# Configure a nice terminal
|
||||||
|
echo "export PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '" >> /etc/profile && \
|
||||||
|
# Fake poweroff (stops the container from the inside by sending SIGTERM to PID 1)
|
||||||
|
echo "alias poweroff='kill 1'" >> /etc/profile
|
||||||
|
|
||||||
|
ENV TINI_KILL_PROCESS_GROUP=1
|
||||||
|
|
||||||
|
EXPOSE 7681 4040 80
|
||||||
|
ENTRYPOINT ["/sbin/tini", "--"]
|
||||||
|
CMD [ "ttyd", "-s", "3", "-t", "titleFixed=/bin/sh", "-t", "rendererType=webgl", "-t", "disableLeaveAlert=true", "/bin/sh", "-i", "-l" ]
|
Loading…
Reference in New Issue
Block a user