Comments (1)
If source code is on a host, then:
docker run --name app -d -p 8080:80 \
-v /host/to/path_source_code/:/var/www/app/ \
romeoz/docker-apache-php
tip from README
But right way is source code and environment (in this case, Apache and php) must be inside docker-image. Development, unit-testing and deploy of code is made within environment, i.e. such a image moves throughout the chain step by step.
For this create your image on based current.
Сontents Dockerfile:
FROM romeoz/docker-apache-php:7.3
COPY /host/to/path_source_code/ /var/www/app/
WORKDIR /var/www/app/
EXPOSE 80 443
CMD ["/sbin/entrypoint.sh"]
Next step,
docker build -t php-7.3 .
docker run --name app -d -p 8080:80 php-7.3
Docks on command COPY
So, each project should have its own image.
from docker-apache-php.
Related Issues (4)
- xdebug HOT 2
- Expose in dockerfile HOT 1
- Are you maintaining still?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-apache-php.