Difference between revisions of "Docker build . -t php-apache"

From wikieduonline
Jump to navigation Jump to search
(Created page with "{{lc}} php:apache {{docker build}}")
 
Line 2: Line 2:
  
  
 +
FROM php:apache
 +
COPY . /usr/src/myapp
 +
WORKDIR /usr/src/myapp
 +
CMD [ "php", "./your-script.php" ]
  
  

Revision as of 20:43, 6 February 2024


FROM php:apache
COPY . /usr/src/myapp
WORKDIR /usr/src/myapp
CMD [ "php", "./your-script.php" ]


php:apache


docker build [ --tag | --platform | --help ] FROM, Dockerfile, .dockerignore, requirements.txt, docker build --help, docker tag

Advertising: