Skip to content

Instantly share code, notes, and snippets.

@malanEvans
Last active March 24, 2023 05:28
Show Gist options
  • Save malanEvans/1f440e9d62ca5cc043d0fec18213e21d to your computer and use it in GitHub Desktop.
Save malanEvans/1f440e9d62ca5cc043d0fec18213e21d to your computer and use it in GitHub Desktop.
Cannot install torch 1.10.2 with poetry 1.4.1 on python:3.8-slim linux/amd64 docker image
FROM --platform=linux/amd64 python:3.8-slim
RUN apt-get update && apt-get install -y git curl
RUN pip install poetry==1.4.1
ENV VIRTUAL_ENV=/opt/venv
RUN python -m venv $VIRTUAL_ENV
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
WORKDIR /app
COPY . /app/
RUN poetry install
[tool.poetry]
name = "test-project"
version = "0.1.0"
authors = ["Firstname Lastname <email-address>"]
description = "test project"
[tool.poetry.dependencies]
python = ">=3.8,<3.11"
torch = "~1.10.2"
transformers = "~4.17.0"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment