Skip to content

Commit

Permalink
Update dockerfile
Browse files Browse the repository at this point in the history
(cherry picked from commit 31b08ef, 05d307c, and 3d30f75)
  • Loading branch information
hugoalh committed Oct 10, 2024
1 parent dddc221 commit fb50a73
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# 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 denoland/deno:bin-2.0.0 AS stage-deno
FROM debian:12.7-slim
ENV APP_ROOT=/opt/hugoalh/send-discord-webhook-ghaction
ENV DEBIAN_FRONTEND=noninteractive
Expand All @@ -9,5 +9,5 @@ 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 /usr/bin/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
RUN deno --version && deno info && cd $APP_ROOT && deno install --lock --vendor --entrypoint mod.ts
CMD deno run --allow-env --allow-net=discord.com --allow-read --allow-write --config=$APP_ROOT/deno.jsonc --lock --vendor $APP_ROOT/mod.ts

Check warning on line 13 in Dockerfile

View workflow job for this annotation

GitHub Actions / GitHub Packages

JSON arguments recommended for ENTRYPOINT/CMD to prevent unintended behavior related to OS signals

JSONArgsRecommended: JSON arguments recommended for CMD to prevent unintended behavior related to OS signals More info: https://docs.docker.com/go/dockerfile/rule/json-args-recommended/
2 changes: 1 addition & 1 deletion mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import {
} from "./_payload.ts";
console.log("Initialize.");
const exfetch: ExFetch = new ExFetch({
userAgent: `${userAgentDefault} SendDiscordWebhook.GitHubAction/7.0.0`
userAgent: `${userAgentDefault} SendDiscordWebhook.GitHubAction/7.0.1`
});
const splitterNewLine = /\r?\n/g;
const splitterCommonDelimiter = /,|\r?\n/g;
Expand Down

0 comments on commit fb50a73

Please sign in to comment.