Skip to content

Commit

Permalink
Fix dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
hugoalh committed Sep 5, 2024
1 parent cc54836 commit 77502ea
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ ENV DEBIAN_FRONTEND=noninteractive
ENV DENO_FUTURE=1
RUN apt-get --assume-yes update && apt-get --assume-yes dist-upgrade && apt-get --assume-yes install apt-utils

FROM stage-base AS stage-extract-deno
ARG DENO_VERSION=1.46.1
RUN apt-get --assume-yes install unzip
ADD https://github.com/denoland/deno/releases/download/v${DENO_VERSION}/deno-x86_64-unknown-linux-gnu.zip /tmp/deno.zip
RUN unzip /tmp/deno.zip

FROM stage-base
# FROM stage-base AS stage-extract-deno
# ARG DENO_VERSION=1.46.1
# RUN apt-get --assume-yes install unzip
# ADD https://github.com/denoland/deno/releases/download/v${DENO_VERSION}/deno-x86_64-unknown-linux-gnu.zip /tmp/deno.zip
# RUN unzip /tmp/deno.zip
#
# FROM stage-base
ENV APP_ROOT=/opt/hugoalh/send-discord-webhook-ghaction
COPY --from=stage-extract-deno /tmp/deno /opt/denoland/deno/deno
COPY --from=denoland/deno:bin-1.46.3 /deno /opt/denoland/deno/deno
RUN chmod +x /opt/denoland/deno/deno && ln -s /opt/denoland/deno/deno /usr/bin/deno
COPY _color_namespace_list.ts _fswalk.ts _payload.ts _random_integer.ts deno.jsonc mod.ts ${APP_ROOT}/
RUN cd $APP_ROOT && deno cache mod.ts
Expand Down

0 comments on commit 77502ea

Please sign in to comment.