Sign inSign up

stvfccn/npn_webserver

By stvfccn

•Updated over 7 years ago

Docker image for a generic Nginx-PHP-NodeJS web application server

Image
0

1.9K

stvfccn/npn_webserver repository overview

⁠Generic Nginx-PHP-NodeJS web application server

⁠About

Nginx-PHP-Nodejs webserver with a set of tools and configurations for production grade PHP and NodeJS web applications

The following libraries are used:

  • NPM 6.4.1
  • NodeJs v8.11.4
  • PHP 7.2.10
  • Nginx 1.14.0

⁠Usage

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

Tag summary

Content type

Image

Digest

Size

72.5 MB

Last updated

over 7 years ago

docker pull stvfccn/npn_webserver