Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/refinedev/dockerfiles
- Owner: refinedev
- Created: 2024-01-18T13:47:00.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-01-19T11:55:30.000Z (11 months ago)
- Last Synced: 2024-05-01T09:40:26.306Z (8 months ago)
- Topics: docker, dockerfile, nextjs, react, refine, remix, vite
- Language: Dockerfile
- Homepage: https://refine.dev
- Size: 330 KB
- Stars: 6
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
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 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/).