Sign inSign up

basshub/front-static-nginx

By basshub

•Updated over 3 years ago

Front end with nginx

Image
0

1.1K

basshub/front-static-nginx repository overview

⁠How to use this image

⁠Hosting front end content

⁠Using docker run
docker run --rm -v ./dist:/usr/share/nginx/html -p 3000:80 basshub/front-static-nginx
⁠Using with compose

Mount dist folder to /usr/share/nginx/html

Here is an example using docker-compose.yml:

version: '3'
services:
  app:
    image: basshub/front-static-nginx
    ports:
      - 3000:80
    volumes:
      - ./dist:/usr/share/nginx/html

⁠Building and publish your own image

Make the Dockerfile and copy dist to /usr/share/nginx/html

Here is an example using Dockerfile:

FROM basshub/front-static-nginx

COPY ./dist /usr/share/nginx/html

Tag summary

Content type

Image

Digest

sha256:5090c1104…

Size

16.2 MB

Last updated

over 3 years ago

docker pull basshub/front-static-nginx