Docker image for a generic Nginx-PHP-NodeJS web application server
1.9K
Nginx-PHP-Nodejs webserver with a set of tools and configurations for production grade PHP and NodeJS web applications
The following libraries are used:
You can use this image directly to serve content or to generate a new image.
$ docker run --name my-npm-app -v /some/content:/app/html:ro -d
Alternatively, a simple Dockerfile can be used to generate a new image that includes the necessary content and additional configurations:
FROM stvfccn/npn_webserver
...
#--- additional NGINX configurations
COPY config/my-nginx-webapp-settings.conf $NGINX_ROOT/90-webapp-settings.conf
...
USER application
#--- copy application contents
WORKDIR $APP_ROOT
COPY my-app-contents .
#--- prepare application
RUN composer install --no-dev
RUN npm install --production
RUN grunt dist
...
# run this container as root because of entrypoint script or replace with new entrypoint
USER root
Content type
Image
Digest
Size
72.5 MB
Last updated
over 7 years ago
docker pull stvfccn/npn_webserver