Skip to content

Latest commit

 

History

History
40 lines (29 loc) · 777 Bytes

README.md

File metadata and controls

40 lines (29 loc) · 777 Bytes

Gamer Blog App Build with NextJS - Typescript and Contenful

This is a minimal setup for NextJS application that work with:

  • typescript
  • styled-components
  • Docker

How to use

Clone this repo to your machine

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"