Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM alpine:3.22.2@sha256:4b7ce07002c69e8f3d704a9c5d6fd3053be500b7f1c69fc0d80990c2ad8dd412 as nadeko-source

Check warning on line 1 in Dockerfile

View workflow job for this annotation

GitHub Actions / docker build / Docker Build (Test)

The 'as' keyword should match the case of the 'from' keyword

FromAsCasing: 'as' and 'FROM' keywords' casing do not match More info: https://docs.docker.com/go/dockerfile/rule/from-as-casing/

WORKDIR /nadeko

Expand All @@ -15,7 +15,7 @@
# rm add_nuget_audit.sh

# Build NadekoBot
FROM mcr.microsoft.com/dotnet/sdk:10.0@sha256:eee11b0bf11715710bbe8339b9641f0ef8b5d8a8e07f2d6ff3cd4361c1a4e5a7 AS build
FROM mcr.microsoft.com/dotnet/sdk:10.0@sha256:8e8a5bbd8dd6a6c594d6c08775fd5fc4a40b67d6bbd27882e6e8b9d5684eac97 AS build
WORKDIR /source

# Copy the .csproj files for each project
Expand Down Expand Up @@ -45,7 +45,7 @@
chmod +x /app/NadekoBot

# Final Image
FROM mcr.microsoft.com/dotnet/runtime:10.0@sha256:63fa4480fbf3c93524d562fd8bcea52626fef7dbf455d568de4e135a051f2701
FROM mcr.microsoft.com/dotnet/runtime:10.0@sha256:66f2c32412df04daeb5109dbb0c919062b1769c6eaca0505c8d8087ad89447ec
WORKDIR /app

# Create a new user, install dependencies, and set up sudoers file
Expand All @@ -72,4 +72,4 @@

# Set the entrypoint and default command
ENTRYPOINT [ "/usr/local/sbin/docker-entrypoint.sh" ]
CMD dotnet NadekoBot.dll "$shard_id" "$total_shards"

Check warning on line 75 in Dockerfile

View workflow job for this annotation

GitHub Actions / docker build / Docker Build (Test)

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/