diff --git a/Dockerfile b/Dockerfile index 6bfd72c..fd7c53a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,7 @@ FROM php:apache +COPY entrypoint.sh ./ + #Start an enable SSH RUN apt-get update \ && apt-get install -y --no-install-recommends dialog gunicorn \ @@ -11,7 +13,6 @@ RUN apt-get update \ 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 fdf4d0a..cbfdd61 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh set -e service ssh start exec gunicorn -w 4 -b 0.0.0.0:8000 app:app \ No newline at end of file