-
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.
Update Noble Numbat already has user ubuntu UID=1000
- Loading branch information
Showing
5 changed files
with
84 additions
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
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,20 @@ | ||
ARG IMAGE_TAG=6.0-bullseye-slim | ||
FROM mcr.microsoft.com/dotnet/aspnet:${IMAGE_TAG} AS base | ||
|
||
ENV SSH_PORT=2222 \ | ||
TZ=UTC \ | ||
APPUSER_UID=1000 | ||
|
||
# Copy files in structure /etc/ssh/sshd_config, /opt/startup/init_container.sh /tmp/ssh_setup.sh | ||
COPY src/ / | ||
|
||
# Install OpenSSH and set the password for root to "Docker!". In this example, "apk add" is the install instruction for an Alpine Linux-based image. | ||
RUN apt-get update \ | ||
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends openssh-server tzdata \ | ||
&& rm -rf /var/lib/apt/lists/* \ | ||
&& mkdir -p /run/sshd \ | ||
&& chmod -R 755 /run/sshd \ | ||
&& echo "root:Docker!" | chpasswd \ | ||
&& chmod -R +x /opt/startup \ | ||
&& (sleep 1;/opt/startup/ssh_setup.sh 2>&1 > /dev/null) \ | ||
&& rm -rf /tmp/* |
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,20 @@ | ||
ARG IMAGE_TAG=6.0-bullseye-slim | ||
FROM mcr.microsoft.com/dotnet/aspnet:${IMAGE_TAG} AS base | ||
|
||
ENV SSH_PORT=2222 \ | ||
TZ=UTC \ | ||
APPUSER_UID=1000 | ||
|
||
# Copy files in structure /etc/ssh/sshd_config, /opt/startup/init_container.sh /tmp/ssh_setup.sh | ||
COPY src/ / | ||
|
||
# Install OpenSSH and set the password for root to "Docker!". In this example, "apk add" is the install instruction for an Alpine Linux-based image. | ||
RUN apt-get update \ | ||
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends openssh-server tzdata \ | ||
&& rm -rf /var/lib/apt/lists/* \ | ||
&& mkdir -p /run/sshd \ | ||
&& chmod -R 755 /run/sshd \ | ||
&& echo "root:Docker!" | chpasswd \ | ||
&& chmod -R +x /opt/startup \ | ||
&& (sleep 1;/opt/startup/ssh_setup.sh 2>&1 > /dev/null) \ | ||
&& rm -rf /tmp/* |
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,20 @@ | ||
ARG IMAGE_TAG=6.0-bullseye-slim | ||
FROM mcr.microsoft.com/dotnet/aspnet:${IMAGE_TAG} AS base | ||
|
||
ENV SSH_PORT=2222 \ | ||
TZ=UTC \ | ||
APPUSER_UID=1000 | ||
|
||
# Copy files in structure /etc/ssh/sshd_config, /opt/startup/init_container.sh /tmp/ssh_setup.sh | ||
COPY src/ / | ||
|
||
# Install OpenSSH and set the password for root to "Docker!". In this example, "apk add" is the install instruction for an Alpine Linux-based image. | ||
RUN apt-get update \ | ||
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends openssh-server tzdata \ | ||
&& rm -rf /var/lib/apt/lists/* \ | ||
&& mkdir -p /run/sshd \ | ||
&& chmod -R 755 /run/sshd \ | ||
&& echo "root:Docker!" | chpasswd \ | ||
&& chmod -R +x /opt/startup \ | ||
&& (sleep 1;/opt/startup/ssh_setup.sh 2>&1 > /dev/null) \ | ||
&& rm -rf /tmp/* |
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,20 @@ | ||
ARG IMAGE_TAG=6.0-bullseye-slim | ||
FROM mcr.microsoft.com/dotnet/aspnet:${IMAGE_TAG} AS base | ||
|
||
ENV SSH_PORT=2222 \ | ||
TZ=UTC \ | ||
APPUSER_UID=1000 | ||
|
||
# Copy files in structure /etc/ssh/sshd_config, /opt/startup/init_container.sh /tmp/ssh_setup.sh | ||
COPY src/ / | ||
|
||
# Install OpenSSH and set the password for root to "Docker!". In this example, "apk add" is the install instruction for an Alpine Linux-based image. | ||
RUN apt-get update \ | ||
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends openssh-server tzdata \ | ||
&& rm -rf /var/lib/apt/lists/* \ | ||
&& mkdir -p /run/sshd \ | ||
&& chmod -R 755 /run/sshd \ | ||
&& echo "root:Docker!" | chpasswd \ | ||
&& chmod -R +x /opt/startup \ | ||
&& (sleep 1;/opt/startup/ssh_setup.sh 2>&1 > /dev/null) \ | ||
&& rm -rf /tmp/* |