mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2025-12-20 20:29:06 +00:00
docker: fix build for arm64
This was broken with safetensors dependencies required by torch
This commit is contained in:
1
.github/workflows/test_server.yml
vendored
1
.github/workflows/test_server.yml
vendored
@@ -80,3 +80,4 @@ jobs:
|
|||||||
uses: docker/build-push-action@v4
|
uses: docker/build-push-action@v4
|
||||||
with:
|
with:
|
||||||
context: server
|
context: server
|
||||||
|
platforms: linux/amd64,linux/arm64
|
||||||
|
|||||||
@@ -7,16 +7,14 @@ ENV PIP_DEFAULT_TIMEOUT=100 \
|
|||||||
PYTHONUNBUFFERED=1 \
|
PYTHONUNBUFFERED=1 \
|
||||||
POETRY_VERSION=1.3.1
|
POETRY_VERSION=1.3.1
|
||||||
|
|
||||||
# install packages needed for base
|
# builder install base dependencies
|
||||||
# RUN apt-get update && apt-get install -y make gettext
|
|
||||||
|
|
||||||
# builder
|
|
||||||
FROM base AS builder
|
FROM base AS builder
|
||||||
WORKDIR /tmp
|
WORKDIR /tmp
|
||||||
# RUN apt-get install -y build-essential libffi-dev zlib1g-dev
|
|
||||||
COPY pyproject.toml poetry.lock /tmp
|
|
||||||
RUN pip install "poetry==$POETRY_VERSION"
|
RUN pip install "poetry==$POETRY_VERSION"
|
||||||
RUN python -m venv /venv
|
RUN python -m venv /venv
|
||||||
|
|
||||||
|
# install application dependencies
|
||||||
|
COPY pyproject.toml poetry.lock /tmp
|
||||||
RUN . /venv/bin/activate && poetry config virtualenvs.create false
|
RUN . /venv/bin/activate && poetry config virtualenvs.create false
|
||||||
RUN . /venv/bin/activate && poetry install --only main,aws --no-root --no-interaction --no-ansi
|
RUN . /venv/bin/activate && poetry install --only main,aws --no-root --no-interaction --no-ansi
|
||||||
|
|
||||||
|
|||||||
2040
server/poetry.lock
generated
2040
server/poetry.lock
generated
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user