Skip to content

Commit

Permalink
Merge pull request #124 from Datura-ai/main
Browse files Browse the repository at this point in the history
hotfix: fix deployment issue
  • Loading branch information
pyon12 authored Dec 9, 2024
2 parents 5e7912c + cbba9af commit cdfb24e
Show file tree
Hide file tree
Showing 4 changed files with 506 additions and 1,384 deletions.
4 changes: 1 addition & 3 deletions neurons/miners/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,12 @@ ENV PDM_CHECK_UPDATE=false

RUN apt-get update && apt-get install -y git
COPY pyproject.toml pdm.lock README.md ./
# RUN pdm lock --check
RUN pdm lock --check
COPY --from=datura . /datura

RUN --mount=type=cache,target=/tmp/pdm_cache \
pdm config cache_dir /tmp/pdm_cache && \
pdm config python.use_venv False && \
# compute-horde from path computes version from git tag which is unavailable here,
# hence we pass PDM_BUILD_SCM_VERSION=0 manually
PDM_BUILD_SCM_VERSION=0 pdm sync --prod --group :all
RUN mkdir -p /opt/ && mv __pypackages__/3.11/ /opt/pypackages/

Expand Down
Loading

0 comments on commit cdfb24e

Please sign in to comment.