Skip to content

refinedev/dockerfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation



refine is an open-source, headless React framework for developers building enterprise internal tools, admin panels, dashboards, B2B applications.

It eliminates repetitive tasks in CRUD operations and provides industry-standard solutions for critical project components like authentication, access control, routing, networking, state management, and i18n.

Refine Dockerfiles

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.

Usage

NextJS

In your project root:

docker build -t nextjs -f ./Dockerfile .

docker run -p 3000:3000 nextjs

Remix

In your project root:

docker build -t remix -f ./Dockerfile .

docker run -p 3000:3000 remix

Vite

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

Documentation