Skip to content

Instantly share code, notes, and snippets.

@muuvmuuv
Last active October 16, 2023 22:20
Show Gist options
  • Save muuvmuuv/cfd0eee59b9e7fd994e2ca45f09d4b83 to your computer and use it in GitHub Desktop.
Save muuvmuuv/cfd0eee59b9e7fd994e2ca45f09d4b83 to your computer and use it in GitHub Desktop.
ARM64 (Silicon) Tensorflow IO devcontainer configuration with Poetry to avoid the headache
{
"name": "Tensorflow.IO",
"build": {
"dockerfile": "Dockerfile"
},
"features": {
"ghcr.io/devcontainers/features/git:1": {
"version": "latest"
}
},
"extensions": [
"ms-python.python",
"VisualStudioExptTeam.vscodeintellicode",
"tamasfe.even-better-toml"
],
"settings": {
}
}
FROM mcr.microsoft.com/devcontainers/python:3.10
RUN curl -sSL https://install.python-poetry.org | POETRY_HOME=/usr/local python3 -
USER vscode
RUN /usr/local/bin/poetry config virtualenvs.in-project true
{
"python.defaultInterpreterPath": "${workspaceFolder}/.venv/bin/python",
"python.linting.pylintArgs": ["--generate-members"]
}
[tool.poetry]
name = "Tensorflow.IO"
version = "0.1.0"
description = "Tensorflow.IO"
authors = ["Marvin Heilemann <[email protected]>"]
[tool.poetry.dependencies]
python = ">=3.10,<3.11"
pylint = "^2.14.5"
black = "^22.6.0"
opencv-python = "^4.6.0.66"
tensorflow = "^2.10.0"
[tool.poetry.dev-dependencies]
pytest = "^5.2"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment