From 8a8d02eed6e76a5ca349dfaa79e69de0443b3228 Mon Sep 17 00:00:00 2001 From: deivix13 <131283102+deivix13@users.noreply.github.com> Date: Wed, 29 Oct 2025 12:53:01 +0100 Subject: [PATCH] feat(dockerfile): add development with docker (#1119) * feat(dockerfile): add development with docker * fix(Doc): correct typo 'volumen' to 'volume' --- Dockerfile | 11 +++++++++++ README.md | 17 +++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..a59618c9 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,11 @@ +FROM oven/bun:latest + +WORKDIR /app + +COPY . . + +RUN bun install + +EXPOSE 5173 + +CMD ["bun", "run", "dev:host"] \ No newline at end of file diff --git a/README.md b/README.md index 215cd07a..a230ac41 100644 --- a/README.md +++ b/README.md @@ -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.