2022-10-12 17:48:30 -04:00
|
|
|
#FROM casjaysdevdocker/debian:latest as build
|
|
|
|
FROM casjaysdevdocker/alpine:latest AS build
|
2022-07-10 10:05:19 -04:00
|
|
|
|
2022-10-12 17:25:02 -04:00
|
|
|
ENV DENO_VERSION="v1.26.1" \
|
2022-07-10 18:52:53 -04:00
|
|
|
DEBIAN_FRONTEND=noninteractive
|
2022-07-10 12:19:07 -04:00
|
|
|
|
2022-07-10 18:54:09 -04:00
|
|
|
RUN apt update && \
|
|
|
|
apt upgrade -yy && \
|
2022-07-10 19:00:47 -04:00
|
|
|
apt install unzip -yy && \
|
|
|
|
apt clean && \
|
|
|
|
rm -rf /var/lib/apt/lists/*
|
2022-07-10 18:33:12 -04:00
|
|
|
|
2022-07-10 10:05:19 -04:00
|
|
|
COPY ./bin/. /usr/local/bin/
|
|
|
|
COPY ./config/. /config/
|
|
|
|
COPY ./data/. /data/
|
|
|
|
|
2022-07-10 18:46:06 -04:00
|
|
|
RUN chmod -Rf 755 /usr/local/bin/get-deno.sh && \
|
2022-10-12 17:48:30 -04:00
|
|
|
DEBUG="true" /usr/local/bin/get-deno.sh && \
|
2022-07-10 18:44:42 -04:00
|
|
|
rm -Rf /usr/local/bin/get-deno.sh
|
|
|
|
|
2022-07-10 10:05:19 -04:00
|
|
|
FROM scratch
|
|
|
|
|
|
|
|
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 <docker-admin@casjaysdev.com>"
|
|
|
|
|
|
|
|
ENV SHELL="/bin/bash" \
|
|
|
|
TERM="xterm-256color" \
|
|
|
|
HOSTNAME="casjaysdev-deno" \
|
|
|
|
TZ="${TZ:-America/New_York}"
|
|
|
|
|
2022-10-12 16:40:42 -04:00
|
|
|
WORKDIR /data
|
|
|
|
VOLUME ["/data"]
|
|
|
|
EXPOSE 1-65535
|
2022-07-10 10:05:19 -04:00
|
|
|
|
|
|
|
COPY --from=build /. /
|
|
|
|
|
2022-10-07 18:47:17 -04:00
|
|
|
HEALTHCHECK --interval=15s --timeout=3s CMD [ "/usr/local/bin/entrypoint-deno.sh", "healthcheck" ]
|
2022-07-10 19:38:23 -04:00
|
|
|
|
2022-07-10 10:05:19 -04:00
|
|
|
ENTRYPOINT [ "/usr/local/bin/entrypoint-deno.sh" ]
|