2024-03-28 11:58:00 +01:00
|
|
|
# Build docker image
|
|
|
|
|
Change into the root directory and run:
|
|
|
|
|
|
|
|
|
|
```shell
|
2024-10-21 19:41:17 +02:00
|
|
|
docker build --rm -f docker/Dockerfile -t m3u-filter --target scratch-final .
|
2024-03-28 11:58:00 +01:00
|
|
|
```
|
2024-10-21 19:41:17 +02:00
|
|
|
PS: If you build `alpine-final` target be aware of the path prefix: `/app`
|
2024-03-28 11:58:00 +01:00
|
|
|
|
|
|
|
|
This will build the complete project and create a docker image.
|
|
|
|
|
|
|
|
|
|
To start the container, you can use the `docker-compose.yml`
|
|
|
|
|
But you need to change `image: ghcr.io/euzu/m3u-filter:latest` to `image: m3u-filter`
|
|
|
|
|
|
|
|
|
|
# Manual docker image
|
|
|
|
|
|
|
|
|
|
You want to build the binary and web folder manually and create a docker image.
|
|
|
|
|
|
2023-03-17 14:52:37 +01:00
|
|
|
To dockerize m3u-filter, you need to compile a static build.
|
2024-03-28 11:58:00 +01:00
|
|
|
The static build can created with `bin\build_lin_static.sh`.
|
2023-03-17 14:52:37 +01:00
|
|
|
Description of static binary compiling is in the main `README.md`
|
|
|
|
|
|
2024-03-28 11:58:00 +01:00
|
|
|
Then you need to compile the frontend with `yarn build`
|
|
|
|
|
|
|
|
|
|
Change into the `docker` directory and copy all the needed files (look at the Dockerfile) into the current directory.
|
|
|
|
|
|
2023-03-17 14:52:37 +01:00
|
|
|
To create a docker image type:
|
2024-03-28 11:58:00 +01:00
|
|
|
`docker -f Dockerfile-manual build -t m3u-filter .`
|
2023-03-17 14:52:37 +01:00
|
|
|
|
|
|
|
|
To start the container, you can use the `docker-compose.yml`
|
2024-03-28 11:58:00 +01:00
|
|
|
But you need to change `image: ghcr.io/euzu/m3u-filter:latest` to `image: m3u-filter`
|