-
-
Save colinchilds/886545448b6ee70eead178857a4b85fd to your computer and use it in GitHub Desktop.
Poetry ARM64
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 python:3.7-buster | |
ENV PYTHONPATH=./.pip:/app/.pip:.: | |
ENV PATH="/root/.poetry/bin:$PATH" | |
RUN apt-get update && apt-get install -y \ | |
bash \ | |
curl \ | |
libcairo2-dev \ | |
gcc \ | |
ninja-build \ | |
make \ | |
libffi-dev \ | |
libsodium-dev \ | |
musl-dev \ | |
cargo && \ | |
python3 -m pip install -U \ | |
dumb-init \ | |
pip && \ | |
python3 -m pip install --upgrade pip && \ | |
mkdir /app && \ | |
curl -sSL https://raw.githubusercontent.com/sdispater/poetry/master/get-poetry.py | \ | |
python - -y --version 1.1.12 | |
WORKDIR /app | |
COPY ["pyproject.toml", "poetry.lock", "/app/"] | |
RUN poetry install -vvv | |
COPY . . | |
CMD ["dumb-init", "./startup.sh"] |
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="my-service" | |
version="1.0.0" | |
description="My service" | |
authors = [ | |
] | |
[tool.poetry.dependencies] | |
python = "^3.7" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment