Skip to content

mlogix/static-dev-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Amoeba web server

It is a lightweight asynchronous web server.

Amoeba created as a development tool for serving static files only. You can use it "as is" as you want but WITHOUT ANY WARRANTY.

BUILD

cargo build --release --verbose

Build Docker Image

docker build -t logix/amoeba .
docker push logix/amoeba:latest

Amoeba - Node 12

docker build -f Dockerfile.node -t logix/node12-amoeba .
docker push logix/node12-amoeba:latest
HOW TO USE

Launch in Docker container:

docker run --rm -it -p 8000:8000 -v $PWD:/app/public logix/amoeba:latest

Docker compose:

amoeba_static:
    image: logix/amoeba:latest

    environment:
      AMOEBA_PORT: 8000
      AMOEBA_HOST: 0.0.0.0
      AMOEBA_INDEX_FILE: 'index.html'
      AMOEBA_PUBLIC_DIR: 'public'

    volumes:
      - <directory-with-static-files>:/app/public

    ports:
      - "8000:8000"

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published