From 1ce9af7e427575fc3676676e3c0592bcf9491b2f Mon Sep 17 00:00:00 2001 From: casjay Date: Wed, 12 Oct 2022 21:46:25 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=97=83=EF=B8=8F=20Committing=20everything?= =?UTF-8?q?=20that=20changed=20=F0=9F=97=83=EF=B8=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 53 ++++++++++++++++++++++++++----------------------- bin/.gitkeep | 0 config/.gitkeep | 0 data/.gitkeep | 0 4 files changed, 28 insertions(+), 25 deletions(-) create mode 100644 bin/.gitkeep create mode 100644 config/.gitkeep create mode 100644 data/.gitkeep diff --git a/Dockerfile b/Dockerfile index 3bd097e..d879d71 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,22 +1,21 @@ FROM casjaysdevdocker/debian:latest as build ARG TIMEZONE="America/New_York" \ - IMAGE_NAME="alpine" \ + IMAGE_NAME="deno" \ LICENSE="MIT" \ + PORTS="1-65535" \ DEBUG="" \ - DENO_VERSION="v1.26.1" \ - PORTS="1-65535" + DENO_VERSION="v1.26.1" ENV TZ="$TIMEZONE" \ - DEBUG="$DEBUG" \ SHELL="/bin/bash" \ - ENV="$HOME/.bashrc" \ TERM="xterm-256color" \ HOSTNAME="${HOSTNAME:-casjaysdev-$IMAGE_NAME}" \ - DENO_VERSION="$DENO_VERSION" + DENO_VERSION="$DENO_VERSION" \ + DEBUG="$DEBUG" + RUN set -ex; \ - rm -Rf "/etc/apk/repositories"; \ mkdir -p "/usr/local/share/template-files/data/htdocs/www" && \ apt-get update && apt-get upgrade -yy && apt-get install -yy \ unzip && \ @@ -31,34 +30,37 @@ RUN chmod -Rf 755 /usr/local/bin/get-deno.sh && \ rm -Rf /usr/local/bin/get-deno.sh /tmp/* /bin/.gitkeep /config /data /var/lib/apt/lists/* /usr/local/share/template-files/data/htdocs/www/.git FROM scratch +ARG BUILD_DATE="2022-10-12" \ + BUILD_VERSION="latest" -ARG BUILD_DATE="$(date +'%Y-%m-%d %H:%M')" - -LABEL org.label-schema.name="deno" \ - org.label-schema.description="containerized version of deno" \ - org.label-schema.url="https://github.com/casjaysdevdocker/deno/deno" \ - org.label-schema.vcs-url="https://github.com/casjaysdevdocker/deno/deno" \ - org.label-schema.build-date=$BUILD_DATE \ - org.label-schema.version=$BUILD_DATE \ - org.label-schema.vcs-ref=$BUILD_DATE \ - org.label-schema.license="WTFPL" \ - org.label-schema.vcs-type="Git" \ - org.label-schema.schema-version="latest" \ - org.label-schema.vendor="CasjaysDev" \ - maintainer="CasjaysDev " +LABEL maintainer="CasjaysDev " \ + org.opencontainers.image.vcs-type="Git" \ + org.opencontainers.image.name="deno" \ + org.opencontainers.image.base.name="deno" \ + org.opencontainers.image.license="$LICENSE" \ + org.opencontainers.image.vcs-ref="$BUILD_VERSION" \ + org.opencontainers.image.build-date="$BUILD_DATE" \ + org.opencontainers.image.version="$BUILD_VERSION" \ + org.opencontainers.image.schema-version="$BUILD_VERSION" \ + org.opencontainers.image.url="https://hub.docker.com/r/casjaysdevdocker/deno" \ + org.opencontainers.image.vcs-url="https://github.com/casjaysdevdocker/deno" \ + org.opencontainers.image.url.source="https://github.com/casjaysdevdocker/deno" \ + org.opencontainers.image.documentation="https://hub.docker.com/r/casjaysdevdocker/deno" \ + org.opencontainers.image.vendor="CasjaysDev" \ + org.opencontainers.image.authors="CasjaysDev" \ + org.opencontainers.image.description="Containerized version of deno" ENV SHELL="/bin/bash" \ - ENV="$HOME/.bashrc" \ TERM="xterm-256color" \ - HOSTNAME="casjaysdev-alpine" \ + HOSTNAME="casjaysdev-deno" \ TZ="${TZ:-America/New_York}" \ - TIMEZONE="$TIMEZONE" \ + TIMEZONE="$$TIMEZONE" \ PHP_SERVER="none" \ PORT="" COPY --from=build /. / -WORKDIR /data/htdocs/www +WORKDIR /root VOLUME [ "/config","/data" ] @@ -67,3 +69,4 @@ EXPOSE $PORTS ENTRYPOINT [ "tini", "-p", "SIGTERM", "--" ] CMD [ "/usr/local/bin/entrypoint-deno.sh" ] HEALTHCHECK --start-period=1m --interval=2m --timeout=3s CMD [ "/usr/local/bin/entrypoint-deno.sh", "healthcheck" ] + diff --git a/bin/.gitkeep b/bin/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/config/.gitkeep b/config/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/data/.gitkeep b/data/.gitkeep new file mode 100644 index 0000000..e69de29