Last active
May 20, 2016 15:51
-
-
Save donilan/8f2b62cbec9ceedbdfcac06662f8bf48 to your computer and use it in GitHub Desktop.
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
FROM richarvey/nginx-php-fpm | |
RUN usermod -u 1000 www-data | |
RUN groupmod -g 1000 www-data | |
WORKDIR /usr/share/nginx/html |
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
#!/usr/bin/env bash | |
# docker build -t myphp | |
# docker stop sftp && docker rm sftp | |
docker run --name sftp -v /home/deploy/www:/home/deploy/www -p 2222:22 -d atmoz/sftp deploy:password:1000:1000 | |
# docker stop nginx && docker rm nginx | |
docker run --name nginx -p 80:80 -v /home/deploy/www:/usr/share/nginx/html -d myphp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment