diff --git a/Dockerfile b/Dockerfile index 51d1f6a..6bfd72c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,6 @@ FROM php:apache #Start an enable SSH -COPY entrypoint.sh ./ RUN apt-get update \ && apt-get install -y --no-install-recommends dialog gunicorn \ && apt-get install -y --no-install-recommends openssh-server \ @@ -9,9 +8,10 @@ RUN apt-get update \ && apt-get -y install python3-pkg-resources python3 xkcdpass \ && echo "root:Docker!" | chpasswd \ && chmod u+x ./entrypoint.sh -COPY sshd_config /etc/ssh/ +COPY sshd_config /etc/ssh/ COPY index.php /var/www/html/ +COPY entrypoint.sh ./ EXPOSE 80 8000 2222 diff --git a/entrypoint.sh b/entrypoint.sh index cbfdd61..fdf4d0a 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash set -e service ssh start exec gunicorn -w 4 -b 0.0.0.0:8000 app:app \ No newline at end of file