Skip to content
This repository has been archived by the owner on Mar 2, 2024. It is now read-only.

Commit

Permalink
update to python 3.9.1
Browse files Browse the repository at this point in the history
  • Loading branch information
redthing1 committed Jan 15, 2021
1 parent 0fd1aae commit 1ae3bcf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
7 changes: 3 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# based on https://github.com/python-poetry/poetry/issues/1879#issuecomment-592133519

# `python-base` sets up all our shared environment variables
FROM python:3.8.1-slim as python-base
FROM python:3.9.1-slim as python-base

# python
ENV PYTHONUNBUFFERED=1 \
Expand All @@ -15,7 +15,7 @@ ENV PYTHONUNBUFFERED=1 \
\
# poetry
# https://python-poetry.org/docs/configuration/#using-environment-variables
POETRY_VERSION=1.0.3 \
POETRY_VERSION=1.0.10 \
# make poetry install to this location
POETRY_HOME="/opt/poetry" \
# make poetry create the virtual environment in the project's root
Expand All @@ -33,7 +33,6 @@ ENV PYTHONUNBUFFERED=1 \
# prepend poetry and venv to path
ENV PATH="$POETRY_HOME/bin:$VENV_PATH/bin:$PATH"


# `builder-base` stage is used to build deps + create our virtual environment
FROM python-base as builder-base
RUN apt-get update \
Expand All @@ -44,7 +43,7 @@ RUN apt-get update \
build-essential

# install poetry - respects $POETRY_VERSION & $POETRY_HOME
RUN curl -sSL https://raw.githubusercontent.com/sdispater/poetry/master/get-poetry.py | python
RUN curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python -

# copy project requirement files here to ensure they will be cached.
WORKDIR $PYSETUP_PATH
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ MODEL=/path/to/your_model poetry run aitg_host

build
```sh
docker build --pull -t aitg_host/base -f Dockerfile .
docker build --pull -t aitg_host/cli -f Dockerfile .
```

run
run cli
```sh
docker run -it --rm -v $(pwd)/models/YOUR_MODEL:/app/model aitg_host/base
docker run -it --rm -v $(pwd)/models/YOUR_MODEL:/app/model aitg_host/cli
```

0 comments on commit 1ae3bcf

Please sign in to comment.