-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
77147fd
commit 3051040
Showing
1 changed file
with
23 additions
and
23 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,24 +1,24 @@ | ||
# Container image that runs your code | ||
FROM alpine:3.18 | ||
|
||
# Install necessary dependencies | ||
RUN apk update && \ | ||
apk add --no-cache wget bash ca-certificates-bundle libgcc libssl3 libstdc++ zlib icu-libs && \ | ||
rm -rf /var/cache/apk/* | ||
|
||
# Download and install .NET Core SDK | ||
RUN wget -q https://dot.net/v1/dotnet-install.sh -O dotnet-install.sh && \ | ||
chmod +x dotnet-install.sh && \ | ||
./dotnet-install.sh --version latest --install-dir /usr/share/dotnet && \ | ||
rm dotnet-install.sh | ||
|
||
# Add .NET to the PATH environment variable | ||
ENV PATH="$PATH:/usr/share/dotnet" | ||
|
||
# Copies your code file from your action repository to the filesystem path `/` of the container | ||
COPY entrypoint.sh /entrypoint.sh | ||
|
||
RUN chmod +x /entrypoint.sh | ||
|
||
# Code file to execute when the docker container starts up (`entrypoint.sh`) | ||
# Container image that runs your code | ||
FROM alpine:3.18 | ||
|
||
# Install necessary dependencies | ||
RUN apk update && \ | ||
apk add --no-cache wget bash ca-certificates-bundle libgcc libssl3 libstdc++ zlib icu-libs && \ | ||
rm -rf /var/cache/apk/* | ||
|
||
# Download and install .NET Core SDK | ||
RUN wget -q https://dot.net/v1/dotnet-install.sh -O dotnet-install.sh && \ | ||
chmod +x dotnet-install.sh && \ | ||
./dotnet-install.sh --channel 9.0 --install-dir /usr/share/dotnet && \ | ||
rm dotnet-install.sh | ||
|
||
# Add .NET to the PATH environment variable | ||
ENV PATH="$PATH:/usr/share/dotnet" | ||
|
||
# Copies your code file from your action repository to the filesystem path `/` of the container | ||
COPY entrypoint.sh /entrypoint.sh | ||
|
||
RUN chmod +x /entrypoint.sh | ||
|
||
# Code file to execute when the docker container starts up (`entrypoint.sh`) | ||
ENTRYPOINT ["/entrypoint.sh"] |