8000 chore: update docker by cstaelen · Pull Request #59 · cstaelen/tidarr · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

chore: update docker #59

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions docker/Dockerfile.dev
10000
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ghcr.io/linuxserver/baseimage-alpine:3.18
FROM ghcr.io/linuxserver/baseimage-alpine:3.21
WORKDIR /home/app/build

ENV SHELL bash
Expand All @@ -7,13 +7,14 @@ ENV NODE_ENV="${NODE_ENV}"
ENV PYTHONUNBUFFERED=1

RUN apk update && apk upgrade
RUN apk add npm nodejs py-pip ffmpeg beets

RUN apk add git build-base curl npm nodejs python3 py3-pip ffmpeg
RUN ln -sf python3 /usr/bin/python
RUN mkdir -p $HOME/.venvs
RUN python3 -m venv $HOME/.venvs
RUN source $HOME/.venvs/bin/activate
ENV PATH="$HOME/.venvs/bin:$PATH"

RUN python3 -m pip install --force-reinstall -v "tiddl==1.8.3"

RUN apk add beets
RUN python -m pip install "tiddl==1.9.3" requests ffmpeg mutagen

RUN mkdir -p /home/app/standalone/shared/beets
RUN touch /home/app/standalone/shared/beets/beets-library.blb
Expand Down
4 changes: 2 additions & 2 deletions docker/Dockerfile.e2e
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## BUILD APP

FROM alpine:3.18 AS app_builder
FROM alpine:3.21 AS app_builder
INCLUDE docker/stages/Dockerfile.builder

## BUILD STANDALONE APP
Expand All @@ -11,8 +11,8 @@ FROM mcr.microsoft.com/playwright:v1.49.0-jammy AS runner

RUN apt-get upgrade && apt-get clean && apt-get update
RUN apt-get install -y python3-pip beets
RUN python3 -m pip install "tiddl==1.9.3"

INCLUDE docker/stages/Dockerfile.python
INCLUDE docker/stages/Dockerfile.runner

ENTRYPOINT ["sh", "/home/app/standalone/docker/run-prod.sh"]
Expand Down
4 changes: 2 additions & 2 deletions docker/Dockerfile.prod
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

## BUILD APP

FROM ghcr.io/linuxserver/baseimage-alpine:3.18 AS app_builder
FROM ghcr.io/linuxserver/baseimage-alpine:3.21 AS app_builder

INCLUDE docker/stages/Dockerfile.builder

## BUILD STANDALONE APP

FROM ghcr.io/linuxserver/baseimage-alpine:3.18 AS runner
FROM ghcr.io/linuxserver/baseimage-alpine:3.21 AS runner
RUN apk add npm nodejs py3-pip beets ffmpeg

INCLUDE docker/stages/Dockerfile.python
Expand Down
7 changes: 5 additions & 2 deletions docker/stages/Dockerfile.python
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@ WORKDIR /home/app/build
ENV SHELL bash
ENV PYTHONUNBUFFERED=1

RUN ln -sf python3 /usr/bin/python
RUN mkdir -p $HOME/.venvs
RUN python3 -m venv $HOME/.venvs
RUN source $HOME/.venvs/bin/activate
ENV PATH="$HOME/.venvs/bin:$PATH"

RUN python3 -m pip install --force-reinstall -v "tiddl==1.8.3"
RUN python -m pip install "tiddl==1.9.3" requests ffmpeg mutagen

RUN mkdir -p /home/app/standalone/shared/beets
RUN touch /home/app/standalone/shared/beets/beets-library.blb
17 changes: 17 additions & 0 deletions settings/.tiddl_config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"token": "<tidal-token>",
"refresh_token": "<tidal-token>",
"token_expires_at": 1736099136,
"settings": {
"download_path": "/home/app/standalone/download/incomplete",
"track_quality": "LOSSLESS",
"track_template": "{artist}/{album}/{title}",
"album_template": "{artist}/{album}/{title}",
"playlist_template": "{playlist}/{title}",
"file_extension": ""
},
"user": {
"user_id": "192283714",
"country_code": "<country-code>"
}
}
Loading
0