From 945b53a86b55f55748a0fc46466227a131fd4816 Mon Sep 17 00:00:00 2001 From: Kroese Date: Sun, 14 Jan 2024 14:41:19 +0100 Subject: [PATCH] build: Initial Dockerfile (#3) --- .dockerignore | 11 +++++++++++ .gitignore | 1 + Dockerfile | 26 ++++++++++++++++++++++++++ 3 files changed, 38 insertions(+) create mode 100644 .dockerignore create mode 100644 .gitignore create mode 100644 Dockerfile diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..2cf7b5a --- /dev/null +++ b/.dockerignore @@ -0,0 +1,11 @@ +.dockerignore +.git +.github +.gitignore +.gitlab-ci.yml +.gitmodules +Dockerfile +Dockerfile.archive +docker-compose.yml + +*.md diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ + diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..e0ee64e --- /dev/null +++ b/Dockerfile @@ -0,0 +1,26 @@ +FROM qemus:qemu-docker + +ARG DEBCONF_NOWARNINGS="yes" +ARG DEBIAN_FRONTEND "noninteractive" +ARG DEBCONF_NONINTERACTIVE_SEEN "true" + +RUN apt-get update \ + && apt-get --no-install-recommends -y install \ + novnc \ + && apt-get clean \ + && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* + +COPY ./src /run/ +RUN chmod +x /run/*.sh + +EXPOSE 8006 +VOLUME /storage + +ENV CPU_CORES "1" +ENV RAM_SIZE "4G" +ENV DISK_SIZE "64G" + +ARG VERSION_ARG "0.0" +RUN echo "$VERSION_ARG" > /run/version + +ENTRYPOINT ["/usr/bin/tini", "-s", "/run/init.sh"]