mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-12 22:25:44 -04:00
add pip packages build step
This commit is contained in:
parent
ce76c324a5
commit
1bfbf5e9c3
3 changed files with 17 additions and 29 deletions
29
Dockerfile
29
Dockerfile
|
@ -209,21 +209,20 @@ RUN echo "[+] Installing NPM extractor dependencies..." \
|
|||
|
||||
######### Build Dependencies ####################################
|
||||
|
||||
# # Install ArchiveBox development dependencies
|
||||
# WORKDIR "$CODE_DIR"
|
||||
# COPY --chown=root:root --chmod=755 "./pyproject.toml" "./pdm.lock" "$CODE_DIR/"
|
||||
# RUN echo "[+] Installing project Python dependencies..." \
|
||||
# && apt-get update -qq \
|
||||
# && apt-get install -qq -y -t bookworm-backports --no-install-recommends \
|
||||
# build-essential libssl-dev libldap2-dev libsasl2-dev \
|
||||
# && pdm use -f $GLOBAL_VENV \
|
||||
# && pdm install --fail-fast --no-lock --group :all --no-self \
|
||||
# && pdm build \
|
||||
# && apt-get purge -y \
|
||||
# build-essential libssl-dev libldap2-dev libsasl2-dev \
|
||||
# # these are only needed to build CPython libs, we discard after build phase to shrink layer size
|
||||
# && apt-get autoremove -y \
|
||||
# && rm -rf /var/lib/apt/lists/*
|
||||
# Install ArchiveBox Python dependencies
|
||||
WORKDIR "$CODE_DIR"
|
||||
COPY --chown=root:root --chmod=755 "./pyproject.toml" "./pdm.lock" "$CODE_DIR/"
|
||||
RUN echo "[+] Installing PIP ArchiveBox dependencies..." \
|
||||
&& apt-get update -qq \
|
||||
&& apt-get install -qq -y -t bookworm-backports --no-install-recommends \
|
||||
build-essential libssl-dev libldap2-dev libsasl2-dev \
|
||||
&& pdm use -f $GLOBAL_VENV \
|
||||
&& pdm install --fail-fast --no-lock --prod --no-self \
|
||||
&& apt-get purge -y \
|
||||
build-essential libssl-dev libldap2-dev libsasl2-dev \
|
||||
# these are only needed to build CPython libs, we discard after build phase to shrink layer size
|
||||
&& apt-get autoremove -y \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Install ArchiveBox Python package from source
|
||||
COPY --chown=root:root --chmod=755 "." "$CODE_DIR/"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue