Skip to content

philipjkim/docker-polymer-cli-nginx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

philipjkim/polymer-cli-nginx

This image is based on jefferyb/polymer-cli, with Nginx installed for the production use for Polymer web apps.

Supported tags

Usage Example

Dockerfile

FROM philipjkim/polymer-cli-nginx:latest

USER root

COPY conf/nginx/nginx.conf /etc/nginx/nginx.conf
COPY . /opt/your-polymer-app

WORKDIR /opt/your-polymer-app

RUN bower install --allow-root
RUN polymer build

EXPOSE 80

CMD ["nginx"]

conf/nginx/nginx.conf

worker_processes  4;
user root;
daemon off;
error_log /dev/stdout info;

events {
    worker_connections  1024;
}

http {
    access_log /dev/stdout;

    include       /etc/nginx/mime.types;
    default_type  application/octet-stream;

    sendfile        on;
    keepalive_timeout  65;
    gzip  on;

    server {
        listen 80;
        root /opt/your-polymer-app/build/bundled;
        index index.html;

        location /
        {
            try_files $uri /index.html;
        }
    }
}

About

This is image contains Polymer CLI and Nginx.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published