Sign inSign up

garsaud/static-server

By garsaud

•Updated almost 7 years ago

Extremely minimalistic and lightweight web server for static content

Image
0

64

garsaud/static-server repository overview

⁠Static Server

An extremely minimalistic and lightweight static web server, meant to be used in multi-stage Docker builds.

⁠Example

⁠Organize your Dockerfile
# stage 0
FROM node:latest as builder-node

# build here your frontend source

# stage 1
FROM garsaud/static-server:1.0

COPY --from=builder-node \
    /dist \
    /www
⁠Build and execute your app
docker build -t my-application .
docker run --rm -it -p 80:80 my-application

Tag summary

Content type

Image

Digest

Size

2.1 MB

Last updated

almost 7 years ago

docker pull garsaud/static-server:1.0-fallback-to-index