Advertisement
someinternetuser

dockfile

Mar 9th, 2019
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. # Use an image
  2. FROM yiisoftware/yii2-php:5.6-fpm-17.12.0
  3.  
  4. WORKDIR .
  5.  
  6. RUN mkdir -p /var/www/my_site
  7.  
  8. COPY . /var/www/my_site
  9.  
  10. # Make port 80 available to the world outside this container
  11. EXPOSE 80
  12.  
  13. # Define environment variable
  14. ENV YII_DEBUG true
  15. ENV YII_ENV dev
  16.  
  17. # Run app.py when the container launches
  18. CMD ["php", "yii"]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement