build: Dockerfile (#33)
This commit is contained in:
parent
fbf829e4f2
commit
a38d199d34
1 changed files with 13 additions and 13 deletions
26
Dockerfile
26
Dockerfile
|
@ -4,8 +4,8 @@ ARG DEBCONF_NOWARNINGS "yes"
|
||||||
ARG DEBIAN_FRONTEND "noninteractive"
|
ARG DEBIAN_FRONTEND "noninteractive"
|
||||||
ARG DEBCONF_NONINTERACTIVE_SEEN "true"
|
ARG DEBCONF_NONINTERACTIVE_SEEN "true"
|
||||||
|
|
||||||
RUN apt-get update \
|
RUN apt-get update && \
|
||||||
&& apt-get --no-install-recommends -y install \
|
apt-get --no-install-recommends -y install \
|
||||||
tini \
|
tini \
|
||||||
wget \
|
wget \
|
||||||
nginx \
|
nginx \
|
||||||
|
@ -20,17 +20,17 @@ RUN apt-get update \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
netcat-openbsd \
|
netcat-openbsd \
|
||||||
qemu-system-arm \
|
qemu-system-arm \
|
||||||
qemu-efi-aarch64 \
|
qemu-efi-aarch64 && \
|
||||||
&& apt-get clean \
|
apt-get clean && \
|
||||||
&& novnc="1.4.0" \
|
novnc="1.4.0" && \
|
||||||
&& mkdir -p /usr/share/novnc \
|
mkdir -p /usr/share/novnc && \
|
||||||
&& wget https://github.com/novnc/noVNC/archive/refs/tags/v"$novnc".tar.gz -O /tmp/novnc.tar.gz -q \
|
wget https://github.com/novnc/noVNC/archive/refs/tags/v"$novnc".tar.gz -O /tmp/novnc.tar.gz -q && \
|
||||||
&& tar -xf /tmp/novnc.tar.gz -C /tmp/ \
|
tar -xf /tmp/novnc.tar.gz -C /tmp/ && \
|
||||||
&& cd /tmp/noVNC-"$novnc" \
|
cd /tmp/noVNC-"$novnc" && \
|
||||||
&& mv app core vendor package.json *.html /usr/share/novnc \
|
mv app core vendor package.json *.html /usr/share/novnc && \
|
||||||
&& unlink /etc/nginx/sites-enabled/default \
|
unlink /etc/nginx/sites-enabled/default && \
|
||||||
&& sed -i 's/^worker_processes.*/worker_processes 1;/' /etc/nginx/nginx.conf \
|
sed -i 's/^worker_processes.*/worker_processes 1;/' /etc/nginx/nginx.conf && \
|
||||||
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||||
|
|
||||||
ADD https://raw.githubusercontent.com/qemus/qemu-docker/master/web/index.html /var/www/index.html
|
ADD https://raw.githubusercontent.com/qemus/qemu-docker/master/web/index.html /var/www/index.html
|
||||||
ADD https://raw.githubusercontent.com/qemus/qemu-docker/master/web/js/script.js /var/www/js/script.js
|
ADD https://raw.githubusercontent.com/qemus/qemu-docker/master/web/js/script.js /var/www/js/script.js
|
||||||
|
|
Loading…
Reference in a new issue