Skip to content

natterstefan/earthly-nextjs-example

Repository files navigation

Earthly-NextJS-Example

Commands

# build image
earth +docker

# lint code
earth +lint

# start image
docker run --rm -p 3000:3000 earthly-nextjs-example:latest

# debug image
docker run -ti --entrypoint /bin/sh earthly-nextjs-example:latest

# run earth with dev image
earth +dev && docker run --rm -p 3000:3000 \
  -v $PWD/components:/app/components \
  -v $PWD/lib:/app/lib \
  -v $PWD/pages:/app/pages \
  -v $PWD/posts:/app/posts \
  -v $PWD/public:/app/public \
  -v $PWD/styles:/app/styles \
  earthly-nextjs-example-dev:latest

Docs

LICENSE

MIT