-
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
734edcd
commit 51e1d4a
Showing
6 changed files
with
71 additions
and
1 deletion.
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
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
FROM mcr.microsoft.com/dotnet/runtime:8.0-bookworm-slim | ||
|
||
# .NET envs | ||
ENV DOTNET_ENVIRONMENT=Production | ||
ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false | ||
|
||
# TZ/LANG envs | ||
ENV TZ America/Sao_Paulo | ||
ENV LANG pt_BR.UTF-8 | ||
ENV LANGUAGE pt_BR.UTF-8 | ||
ENV LC_ALL pt_BR.UTF-8 | ||
|
||
RUN apt update && \ | ||
apt upgrade -y && \ | ||
apt install -y --no-install-recommends locales curl && \ | ||
apt clean && apt autoclean && apt autoremove -y && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
RUN echo $TZ > /etc/timezone && \ | ||
ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && \ | ||
dpkg-reconfigure -f noninteractive tzdata | ||
|
||
RUN echo "locales locales/locales_to_be_generated multiselect pt_BR.UTF-8 UTF-8" | debconf-set-selections && \ | ||
rm /etc/locale.gen && \ | ||
dpkg-reconfigure --frontend noninteractive locales | ||
|
||
COPY docker-entrypoint.sh /home/app | ||
|
||
USER app | ||
|
||
WORKDIR /home/app | ||
|
||
ENTRYPOINT ["/bin/sh", "docker-entrypoint.sh"] |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
|
||
#Debian | ||
docker build -f ./Debian/Dockerfile -t jacksonveroneze/net:8.0-debian . |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash | ||
|
||
RELEASE="${RELEASE=latest}" | ||
|
||
#Debian | ||
docker tag jacksonveroneze/net:8.0-debian jacksonveroneze/net:8.0-debian-$RELEASE |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/sh | ||
|
||
OS=$(cat /etc/*-release | egrep "PRETTY_NAME" | cut -d = -f 2 | tr -d '"') | ||
|
||
APP_NAME=$(find . -type f -name "*deps.json" | xargs) | ||
APP_NAME=$(echo $APP_NAME | xargs | sed -e "s/.\///g;s/.deps.json/\.dll/g") | ||
|
||
echo "- SystemOperation: $OS" | ||
echo "- Environment: $DOTNET_ENVIRONMENT" | ||
echo "" | ||
echo "- Run application: $APP_NAME" | ||
|
||
dotnet $APP_NAME |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash | ||
|
||
RELEASE="${RELEASE=latest}" | ||
|
||
#Debian | ||
docker push jacksonveroneze/net:8.0-debian-$RELEASE |