Skip to content

Commit

Permalink
changed sequence in dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
apefrei committed Dec 4, 2023
1 parent 7b86319 commit d710a85
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -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 \
Expand All @@ -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

Expand Down
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit d710a85

Please sign in to comment.