feat(dockerfile): add development with docker (#1119)

* feat(dockerfile): add development with docker

* fix(Doc): correct typo 'volumen' to 'volume'
This commit is contained in:
deivix13
2025-10-29 12:53:01 +01:00
committed by GitHub
parent ac3924aaf7
commit 8a8d02eed6
2 changed files with 28 additions and 0 deletions

11
Dockerfile Normal file
View File

@@ -0,0 +1,11 @@
FROM oven/bun:latest
WORKDIR /app
COPY . .
RUN bun install
EXPOSE 5173
CMD ["bun", "run", "dev:host"]

View File

@@ -49,6 +49,23 @@ Install dependencies with ``bun install``, and then you can run any of the follo
- `bun run pretty` - run prettier
- `bun run translations` - migrate old translation format to new
## 🐳 Docker development
Hot reload is available while coding.
- `docker build -t mue-app .` - build the image
- `docker volume create dev-bun-app` - create a volume for the app
- `docker run -p 5173:5173 mue-app` - run the container
- `docker run -p 5173:5173 \
-v $(pwd):/app \
-v dev-bun-app:/app/node_modules \
mue-app
` - run the container
Navigate to http://localhost:5173
## 🌍 Translations
We use [Weblate](https://weblate.org) for translations. To get started, please visit the [project](https://hosted.weblate.org/projects/mue/) and look for the latest version to start translating Mue into your langauge.