-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
1 addition
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,10 @@ | ||
# syntax=docker/dockerfile:1 | ||
# IMPORTANT: Do not create big size layer due to GitHub Packages have worse performance on this! | ||
FROM denoland/deno:bin-1.46.3 AS stage-deno | ||
FROM alpine:3.20.3 | ||
ENV APP_ROOT=/opt/hugoalh/send-discord-webhook-ghaction | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
ENV DENO_NO_PROMPT=1 | ||
ENV DENO_NO_UPDATE_CHECK=1 | ||
COPY --from=stage-deno /deno /opt/denoland/deno/deno | ||
RUN chmod +x /opt/denoland/deno/deno && ln -s /opt/denoland/deno/deno /bin/deno | ||
RUN apk update && apk --no-cache add deno | ||
COPY _color_namespace_list.ts _fswalk.ts _parameter.ts _payload.ts _random_integer.ts deno.jsonc mod.ts ${APP_ROOT}/ | ||
RUN deno --version && deno info && cd $APP_ROOT && deno cache mod.ts && deno cache --vendor mod.ts | ||
CMD deno run --allow-env --allow-net=discord.com --allow-read --allow-write --config=$APP_ROOT/deno.jsonc --vendor $APP_ROOT/mod.ts |