8000 GitHub - nikeee/docker-nginx-spa: Docker image used to serve a Single Page App (pure frontend javascript) using nginx, it support PushState.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Docker image used to serve a Single Page App (pure frontend javascript) using nginx, it support PushState.

Notifications You must be signed in to change notification settings

nikeee/docker-nginx-spa

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
< 8000 a href="/nikeee/docker-nginx-spa/commits/master/" class="prc-Button-ButtonBase-c50BI LinkButton-module__code-view-link-button--xvCGA flex-items-center fgColor-default" data-loading="false" data-size="small" data-variant="invisible" aria-describedby=":R1iqj8pab:-loading-announcement history-icon-button-tooltip">
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a Docker image used to serve a Single Page App (pure frontend javascript) using nginx with pushState support.

This is a fork of SocialEngine/docker-nginx-spa. Changes include:

  • armv7/armv6/amd64 support (not just amd64)
  • Using nginx:alpine-stable as base
  • Removed ability to configure the site using env vars

Supported tags and Dockerfile links

  • latest (Dockerfile)

Included on top of [base][base image] nginx image

  • pushState support. Every request is routed to /app/index.html. Useful for the clean urls (no !#)

App Setup

This docker image is built for index.html file being in the /app directory. pushState is enabled.

At a minimum, you will want this in your Dockerfile:

FROM ghcr.io/nikeee/docker-nginx-spa:latest

COPY build/ /app
COPY index.html /app/index.html

Then you can build & run your app in the docker container. It will be served by a nginx static server.

About

Docker image used to serve a Single Page App (pure frontend javascript) using nginx, it support PushState.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • Dockerfile 100.0%
0