This is a minimal setup for NextJS application that work with:
- typescript
styled-components
- Docker
git clone [email protected]:sowgenius/gamer-blog.git gamer-blog-app
cd gamer-blog-app
Build it with docker:
# build
docker build -t nextjs-app .
# or, use multi-stage builds to build a smaller docker image
docker build -t nextjs-app -f ./Dockerfile.multistage.
Run it:
docker run --rm -it \
-p 3000:3000 \
-e "API_URL=https://example.com" \
gamer-blog-app
Deploy it to the cloud with now (download)
now --docker -e API_URL="https://example.com"