-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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