-
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
Showing
3 changed files
with
30 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,18 @@ | ||
FROM php:apache | ||
|
||
RUN set -x \ | ||
# Install xkcd | ||
apt -y install python3-pkg-resources python3 xkcdpass | ||
#Start an enable SSH | ||
COPY entrypoint.sh ./ | ||
RUN apt-get update \ | ||
&& apt-get install -y --no-install-recommends dialog \ | ||
&& apt-get install -y --no-install-recommends openssh-server \ | ||
#XKCD | ||
&& apt-get -y install python3-pkg-resources python3 xkcdpass \ | ||
&& echo "root:Docker!" | chpasswd \ | ||
&& chmod u+x ./entrypoint.sh | ||
COPY sshd_config /etc/ssh/ | ||
|
||
COPY index.php /var/www/html/ | ||
EXPOSE 80 | ||
|
||
EXPOSE 80 8000 2222 | ||
|
||
ENTRYPOINT [ "./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/sh | ||
set -e | ||
service ssh start | ||
exec gunicorn -w 4 -b 0.0.0.0:8000 app:app |
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,12 @@ | ||
Port 2222 | ||
ListenAddress 0.0.0.0 | ||
LoginGraceTime 180 | ||
X11Forwarding yes | ||
Ciphers aes128-cbc,3des-cbc,aes256-cbc,aes128-ctr,aes192-ctr,aes256-ctr | ||
MACs hmac-sha1,hmac-sha1-96 | ||
StrictModes yes | ||
SyslogFacility DAEMON | ||
PasswordAuthentication yes | ||
PermitEmptyPasswords no | ||
PermitRootLogin yes | ||
Subsystem sftp internal-sftp |