Skip to content

Instantly share code, notes, and snippets.

@makasim
Last active July 2, 2018 12:44
Show Gist options
  • Select an option

  • Save makasim/3e77e5384ef9953201d77ef943625776 to your computer and use it in GitHub Desktop.

Select an option

Save makasim/3e77e5384ef9953201d77ef943625776 to your computer and use it in GitHub Desktop.
server static files such as prod version of react.js app.
FROM nginx:1.15
WORKDIR /var/www
COPY /nginx.conf /etc/nginx/conf.d/app.conf
ADD ./public /var/www
server {
listen 80;
location / {
root /var/www/;
try_files $uri /index.html;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment