Skip to content

Latest commit

 

History

History
28 lines (21 loc) · 766 Bytes

README.md

File metadata and controls

28 lines (21 loc) · 766 Bytes

Static Server

A Docker base image for serving static websites

Image Size

Usage

  • Create a Dockerfile and include the glenndehaan/static-server as base image or use the Example Dockerfile below
  • Build and run your container with port 80 forwarded to for example port 3000
  • Visit: http://localhost:3000 to see your app

Development Usage

Make sure you have docker installed in your machine then run the following command in your terminal:

docker compose up

Example Dockerfile

# Define Base Image
FROM glenndehaan/static-server

# Create web directory
WORKDIR /www

# Bundle web source
COPY . .