Skip to content

Commit

Permalink
Fix environment name for zimui dist
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-niles committed May 28, 2024
1 parent 3b2aad1 commit 304e7c3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
20 changes: 10 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ LABEL org.opencontainers.image.source https://github.com/openzim/youtube

# Install necessary packages
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
locales-all \
wget \
unzip \
ffmpeg \
aria2 \
&& rm -rf /var/lib/apt/lists/* \
&& python -m pip install --no-cache-dir -U \
pip
&& apt-get install -y --no-install-recommends \
locales-all \
wget \
unzip \
ffmpeg \
aria2 \
&& rm -rf /var/lib/apt/lists/* \
&& python -m pip install --no-cache-dir -U \
pip

# Custom entrypoint
COPY scraper/entrypoint.sh /usr/local/bin/entrypoint.sh
Expand All @@ -45,6 +45,6 @@ RUN pip install --no-cache-dir /src/scraper \
# Copy zimui build output
COPY --from=zimui /src/dist /src/zimui

ENV KOLIBRI_ZIMUI_DIST=/src/zimui
ENV YOUTUBE_ZIMUI_DIST=/src/zimui

CMD ["youtube2zim", "--help"]
2 changes: 1 addition & 1 deletion scraper/src/youtube2zim/entrypoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def main():
help=(
"Directory containing Vite build output from the Zim UI Vue.JS application"
),
default=os.getenv("KOLIBRI_ZIMUI_DIST", "../zimui/dist"),
default=os.getenv("YOUTUBE_ZIMUI_DIST", "../zimui/dist"),
)

parser.add_argument(
Expand Down

0 comments on commit 304e7c3

Please sign in to comment.