2022-10-12 20:14:52 -04:00
|
|
|
FROM casjaysdevdocker/debian:latest as build
|
2022-07-10 10:05:19 -04:00
|
|
|
|
2022-10-12 20:22:36 -04:00
|
|
|
ARG TIMEZONE="America/New_York" \
|
2022-10-12 21:46:25 -04:00
|
|
|
IMAGE_NAME="deno" \
|
2022-10-12 18:31:11 -04:00
|
|
|
LICENSE="MIT" \
|
2022-10-12 21:46:25 -04:00
|
|
|
PORTS="1-65535" \
|
2022-10-12 22:21:46 -04:00
|
|
|
DEBUG="" \
|
2022-10-12 21:46:25 -04:00
|
|
|
DENO_VERSION="v1.26.1"
|
2022-07-10 12:19:07 -04:00
|
|
|
|
2022-10-12 18:31:11 -04:00
|
|
|
ENV TZ="$TIMEZONE" \
|
|
|
|
SHELL="/bin/bash" \
|
|
|
|
TERM="xterm-256color" \
|
|
|
|
HOSTNAME="${HOSTNAME:-casjaysdev-$IMAGE_NAME}" \
|
2022-10-12 21:46:25 -04:00
|
|
|
DENO_VERSION="$DENO_VERSION" \
|
|
|
|
DEBUG="$DEBUG"
|
|
|
|
|
2022-10-12 18:31:11 -04:00
|
|
|
|
|
|
|
RUN set -ex; \
|
2022-10-12 21:15:50 -04:00
|
|
|
mkdir -p "/usr/local/share/template-files/data/htdocs/www" && \
|
2022-10-12 20:22:36 -04:00
|
|
|
apt-get update && apt-get upgrade -yy && apt-get install -yy \
|
2022-10-12 21:15:50 -04:00
|
|
|
unzip && \
|
2022-10-12 22:21:46 -04:00
|
|
|
git clone -q "https://github.com/casjay-templates/denojs" "/usr/local/share/template-files/data/htdocs/www"
|
2022-07-10 18:33:12 -04:00
|
|
|
|
2022-07-10 10:05:19 -04:00
|
|
|
COPY ./bin/. /usr/local/bin/
|
2022-10-12 18:31:11 -04:00
|
|
|
COPY ./data/. /usr/local/share/template-files/data/
|
|
|
|
COPY ./config/. /usr/local/share/template-files/config/
|
2022-07-10 10:05:19 -04:00
|
|
|
|
2022-07-10 18:46:06 -04:00
|
|
|
RUN chmod -Rf 755 /usr/local/bin/get-deno.sh && \
|
2022-10-12 18:42:53 -04:00
|
|
|
/usr/local/bin/get-deno.sh && \
|
2022-10-12 21:15:50 -04:00
|
|
|
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
|
2022-07-10 18:44:42 -04:00
|
|
|
|
2022-07-10 10:05:19 -04:00
|
|
|
FROM scratch
|
2022-10-12 21:46:25 -04:00
|
|
|
ARG BUILD_DATE="2022-10-12" \
|
|
|
|
BUILD_VERSION="latest"
|
2022-07-10 10:05:19 -04:00
|
|
|
|
2022-10-12 21:46:25 -04:00
|
|
|
LABEL maintainer="CasjaysDev <docker-admin@casjaysdev.com>" \
|
|
|
|
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"
|
2022-07-10 10:05:19 -04:00
|
|
|
|
|
|
|
ENV SHELL="/bin/bash" \
|
|
|
|
TERM="xterm-256color" \
|
2022-10-12 21:46:25 -04:00
|
|
|
HOSTNAME="casjaysdev-deno" \
|
2022-10-12 18:31:11 -04:00
|
|
|
TZ="${TZ:-America/New_York}" \
|
2022-10-12 21:46:25 -04:00
|
|
|
TIMEZONE="$$TIMEZONE" \
|
2022-10-12 18:31:11 -04:00
|
|
|
PHP_SERVER="none" \
|
|
|
|
PORT=""
|
2022-07-10 10:05:19 -04:00
|
|
|
|
|
|
|
COPY --from=build /. /
|
|
|
|
|
2022-10-12 21:46:25 -04:00
|
|
|
WORKDIR /root
|
2022-10-12 18:31:11 -04:00
|
|
|
|
|
|
|
VOLUME [ "/config","/data" ]
|
|
|
|
|
|
|
|
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" ]
|
2022-10-12 21:46:25 -04:00
|
|
|
|