docker build -t nextjs -f ./Dockerfile .
docker run -p 3000:3000 nextjs
GitHub上のドキュメントをスライド化しています
https://github.com/refinedev/dockerfiles/master/README.mdを参照しています。
Here you can find example Refine Dockerfiles for nextjs
, remix
and vite
projects.
Navigate to each folder to see the Dockerfile and their README’s.
These Dockerfiles uses Docker’s multi-stage build best practices for security and optimizing image sizes.
Final image runs application with non-root
user and only includes production artifacts.
In your project root:
docker build -t nextjs -f ./Dockerfile .
docker run -p 3000:3000 nextjs
In your project root:
docker build -t remix -f ./Dockerfile .
docker run -p 3000:3000 remix
In your project root:
docker build -t vite -f ./Dockerfile.nginx .
docker run -p 5173:80 vite
# or
docker build -t vite -f ./Dockerfile.serve .
docker run -p 5173:3000 vite
A React Framework for building internal tools, admin panels, dashboards & B2B apps with unma...
0 回