-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dockerfile rewrite - migrated to python on bookworm. Deleted compose …
…files.
- Loading branch information
1 parent
f6bd884
commit e030d3e
Showing
15 changed files
with
19 additions
and
319 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,10 @@ | ||
FROM python:3.10-bookworm | ||
|
||
RUN apt update && apt install -y openssh-server sudo && rm -rf /var/lib/apt/lists/* | ||
RUN echo 'root:amella' | chpasswd | ||
RUN mkdir -p /run/sshd | ||
|
||
COPY sshd_config /etc/ssh/sshd_config | ||
|
||
EXPOSE 22 | ||
CMD ["/usr/sbin/sshd", "-D"] |
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,9 @@ | ||
Include /etc/ssh/sshd_config.d/*.conf | ||
|
||
PermitRootLogin yes | ||
PasswordAuthentication yes | ||
ChallengeResponseAuthentication no | ||
UsePAM yes | ||
PrintMotd no | ||
AcceptEnv LANG LC_* | ||
Subsystem sftp /usr/lib/openssh/sftp-server |