Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/refinedev/dockerfiles

Dockerfile examples for Refine projects.
https://github.com/refinedev/dockerfiles

docker dockerfile nextjs react refine remix vite

Last synced: about 2 months ago
JSON representation

Dockerfile examples for Refine projects.

Awesome Lists containing this project

README

        



refine logo



Home Page |
Discord |
Examples |
Blog |
Documentation




[![Discord](https://img.shields.io/discord/837692625737613362.svg?label=&logo=discord&logoColor=ffffff&color=7389D8&labelColor=6A7EC2)](https://discord.gg/refine)
[![Twitter Follow](https://img.shields.io/twitter/follow/refine_dev?style=social)](https://twitter.com/refine_dev)

refine - 100% open source React framework to build web apps 3x faster | Product Hunt


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](https://docs.docker.com/develop/develop-images/dockerfile_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:

```bash
docker build -t nextjs -f ./Dockerfile .

docker run -p 3000:3000 nextjs
```

### Remix

In your project root:

```bash
docker build -t remix -f ./Dockerfile .

docker run -p 3000:3000 remix
```

### Vite

In your project root:

```bash
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

- [Refer to documentation for more info about refine](https://refine.dev/docs/).
- [Step up to refine tutorials](https://refine.dev/docs/tutorial/introduction/index/).