ARG RELEASE |
ARG LAUNCHPAD_BUILD_ARCH |
LABEL org.opencontainers.image.ref.name=ubuntu |
LABEL org.opencontainers.image.version=22.04 |
ADD file:2bed1fbf8253926f27dc275983c274712d836e9b6acdb1059d29c072d8f63a03 in / |
CMD ["/bin/bash"] |
RUN /bin/sh -c useradd --uid 1993 --user-group deno && mkdir /deno-dir/ && chown deno:deno /deno-dir/ # buildkit |
ENV DENO_DIR=/deno-dir/ |
ENV DENO_INSTALL_ROOT=/usr/local |
ARG DENO_VERSION=1.45.5 |
ENV DENO_VERSION=1.45.5 |
COPY /deno /usr/bin/deno # buildkit |
COPY /tini /tini # buildkit |
COPY ./_entry.sh /usr/local/bin/docker-entrypoint.sh # buildkit |
RUN |1 DENO_VERSION=1.45.5 /bin/sh -c chmod 755 /usr/local/bin/docker-entrypoint.sh # buildkit |
ENTRYPOINT ["/tini" "--" "docker-entrypoint.sh"] |
CMD ["eval" "console.log('Welcome to Deno!')"] |
EXPOSE map[8000/tcp:{}] |
RUN /bin/sh -c apt-get update && apt-get install -y make # buildkit |
WORKDIR /app |
ADD . /app # buildkit |
RUN /bin/sh -c rm -fr node_modules _fresh # buildkit |
RUN /bin/sh -c deno task build # buildkit |
RUN /bin/sh -c chown -R deno:deno /app /deno-dir # buildkit |
USER deno |
RUN /bin/sh -c deno cache --reload main.ts # buildkit |
CMD ["run" "--allow-all" "main.ts"] |