diff --git a/.erb/configs/webpack.config.renderer.web.ts b/.erb/configs/webpack.config.renderer.web.ts index bbd4d8468..f9e005238 100644 --- a/.erb/configs/webpack.config.renderer.web.ts +++ b/.erb/configs/webpack.config.renderer.web.ts @@ -122,6 +122,7 @@ const configuration: webpack.Configuration = { devServer: { port, + allowedHosts: 'all', compress: true, hot: true, headers: { 'Access-Control-Allow-Origin': '*' }, diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 000000000..3cd80249b --- /dev/null +++ b/Dockerfile @@ -0,0 +1,16 @@ +FROM node:16.15.0 + +RUN apt update -qq \ + && apt install -qy \ + wget \ + mpv \ + libnss3-dev \ + git + +COPY . /feishin +WORKDIR /feishin + +RUN npm install +RUN npm run build + +CMD npm run start:web diff --git a/README.md b/README.md index 389d66a89..6579b7353 100644 --- a/README.md +++ b/README.md @@ -55,6 +55,15 @@ If you're using an M1 macOS device, [check here](https://github.com/jeffvli/feis - **Navidrome** - For the best experience, select "Save password" when creating the server and configure the `SessionTimeout` setting in your Navidrome config to a larger value (e.g. 72h). +## Docker + +```bash +docker build -t feishin . +docker run -p 4343:4343 feishin +``` + +Go to http://localhost:4343 + ## FAQ ### What music servers does Feishin support?