mirror of
https://github.com/casjaysdevdocker/deno
synced 2025-01-18 12:34:21 -05:00
🗃️ Committing everything that changed 🗃️
This commit is contained in:
parent
ce5f843b32
commit
1ce9af7e42
53
Dockerfile
53
Dockerfile
@ -1,22 +1,21 @@
|
|||||||
FROM casjaysdevdocker/debian:latest as build
|
FROM casjaysdevdocker/debian:latest as build
|
||||||
|
|
||||||
ARG TIMEZONE="America/New_York" \
|
ARG TIMEZONE="America/New_York" \
|
||||||
IMAGE_NAME="alpine" \
|
IMAGE_NAME="deno" \
|
||||||
LICENSE="MIT" \
|
LICENSE="MIT" \
|
||||||
|
PORTS="1-65535" \
|
||||||
DEBUG="" \
|
DEBUG="" \
|
||||||
DENO_VERSION="v1.26.1" \
|
DENO_VERSION="v1.26.1"
|
||||||
PORTS="1-65535"
|
|
||||||
|
|
||||||
ENV TZ="$TIMEZONE" \
|
ENV TZ="$TIMEZONE" \
|
||||||
DEBUG="$DEBUG" \
|
|
||||||
SHELL="/bin/bash" \
|
SHELL="/bin/bash" \
|
||||||
ENV="$HOME/.bashrc" \
|
|
||||||
TERM="xterm-256color" \
|
TERM="xterm-256color" \
|
||||||
HOSTNAME="${HOSTNAME:-casjaysdev-$IMAGE_NAME}" \
|
HOSTNAME="${HOSTNAME:-casjaysdev-$IMAGE_NAME}" \
|
||||||
DENO_VERSION="$DENO_VERSION"
|
DENO_VERSION="$DENO_VERSION" \
|
||||||
|
DEBUG="$DEBUG"
|
||||||
|
|
||||||
|
|
||||||
RUN set -ex; \
|
RUN set -ex; \
|
||||||
rm -Rf "/etc/apk/repositories"; \
|
|
||||||
mkdir -p "/usr/local/share/template-files/data/htdocs/www" && \
|
mkdir -p "/usr/local/share/template-files/data/htdocs/www" && \
|
||||||
apt-get update && apt-get upgrade -yy && apt-get install -yy \
|
apt-get update && apt-get upgrade -yy && apt-get install -yy \
|
||||||
unzip && \
|
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
|
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
|
FROM scratch
|
||||||
|
ARG BUILD_DATE="2022-10-12" \
|
||||||
|
BUILD_VERSION="latest"
|
||||||
|
|
||||||
ARG BUILD_DATE="$(date +'%Y-%m-%d %H:%M')"
|
LABEL maintainer="CasjaysDev <docker-admin@casjaysdev.com>" \
|
||||||
|
org.opencontainers.image.vcs-type="Git" \
|
||||||
LABEL org.label-schema.name="deno" \
|
org.opencontainers.image.name="deno" \
|
||||||
org.label-schema.description="containerized version of deno" \
|
org.opencontainers.image.base.name="deno" \
|
||||||
org.label-schema.url="https://github.com/casjaysdevdocker/deno/deno" \
|
org.opencontainers.image.license="$LICENSE" \
|
||||||
org.label-schema.vcs-url="https://github.com/casjaysdevdocker/deno/deno" \
|
org.opencontainers.image.vcs-ref="$BUILD_VERSION" \
|
||||||
org.label-schema.build-date=$BUILD_DATE \
|
org.opencontainers.image.build-date="$BUILD_DATE" \
|
||||||
org.label-schema.version=$BUILD_DATE \
|
org.opencontainers.image.version="$BUILD_VERSION" \
|
||||||
org.label-schema.vcs-ref=$BUILD_DATE \
|
org.opencontainers.image.schema-version="$BUILD_VERSION" \
|
||||||
org.label-schema.license="WTFPL" \
|
org.opencontainers.image.url="https://hub.docker.com/r/casjaysdevdocker/deno" \
|
||||||
org.label-schema.vcs-type="Git" \
|
org.opencontainers.image.vcs-url="https://github.com/casjaysdevdocker/deno" \
|
||||||
org.label-schema.schema-version="latest" \
|
org.opencontainers.image.url.source="https://github.com/casjaysdevdocker/deno" \
|
||||||
org.label-schema.vendor="CasjaysDev" \
|
org.opencontainers.image.documentation="https://hub.docker.com/r/casjaysdevdocker/deno" \
|
||||||
maintainer="CasjaysDev <docker-admin@casjaysdev.com>"
|
org.opencontainers.image.vendor="CasjaysDev" \
|
||||||
|
org.opencontainers.image.authors="CasjaysDev" \
|
||||||
|
org.opencontainers.image.description="Containerized version of deno"
|
||||||
|
|
||||||
ENV SHELL="/bin/bash" \
|
ENV SHELL="/bin/bash" \
|
||||||
ENV="$HOME/.bashrc" \
|
|
||||||
TERM="xterm-256color" \
|
TERM="xterm-256color" \
|
||||||
HOSTNAME="casjaysdev-alpine" \
|
HOSTNAME="casjaysdev-deno" \
|
||||||
TZ="${TZ:-America/New_York}" \
|
TZ="${TZ:-America/New_York}" \
|
||||||
TIMEZONE="$TIMEZONE" \
|
TIMEZONE="$$TIMEZONE" \
|
||||||
PHP_SERVER="none" \
|
PHP_SERVER="none" \
|
||||||
PORT=""
|
PORT=""
|
||||||
|
|
||||||
COPY --from=build /. /
|
COPY --from=build /. /
|
||||||
|
|
||||||
WORKDIR /data/htdocs/www
|
WORKDIR /root
|
||||||
|
|
||||||
VOLUME [ "/config","/data" ]
|
VOLUME [ "/config","/data" ]
|
||||||
|
|
||||||
@ -67,3 +69,4 @@ EXPOSE $PORTS
|
|||||||
ENTRYPOINT [ "tini", "-p", "SIGTERM", "--" ]
|
ENTRYPOINT [ "tini", "-p", "SIGTERM", "--" ]
|
||||||
CMD [ "/usr/local/bin/entrypoint-deno.sh" ]
|
CMD [ "/usr/local/bin/entrypoint-deno.sh" ]
|
||||||
HEALTHCHECK --start-period=1m --interval=2m --timeout=3s CMD [ "/usr/local/bin/entrypoint-deno.sh", "healthcheck" ]
|
HEALTHCHECK --start-period=1m --interval=2m --timeout=3s CMD [ "/usr/local/bin/entrypoint-deno.sh", "healthcheck" ]
|
||||||
|
|
||||||
|
0
bin/.gitkeep
Normal file
0
bin/.gitkeep
Normal file
0
config/.gitkeep
Normal file
0
config/.gitkeep
Normal file
0
data/.gitkeep
Normal file
0
data/.gitkeep
Normal file
Loading…
x
Reference in New Issue
Block a user