Skip to content

Commit

Permalink
working docker version
Browse files Browse the repository at this point in the history
poetry update
  • Loading branch information
Avi-Robusta committed May 29, 2024
1 parent cf366e6 commit 9178d2d
Show file tree
Hide file tree
Showing 6 changed files with 124 additions and 107 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build-on-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ jobs:
cp ./intro.txt ./dist/krr/intro.txt
- name: Build with PyInstaller
continue-on-error: true
if: matrix.os == 'ubuntu-latest'
shell: bash
run: |
Expand Down
12 changes: 7 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
# Use the official Python 3.9 slim image as the base image
FROM python:3.9-slim as builder
FROM cgr.dev/chainguard/python:latest-dev as builder
ENV LANG=C.UTF-8
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
ENV PATH="/app/venv/bin:$PATH"

# Set the working directory
WORKDIR /app

# Install system dependencies required for Poetry
RUN apt-get update && \
dpkg --add-architecture arm64

COPY ./requirements.txt requirements.txt

RUN pip install --upgrade pip
# Install the project dependencies
RUN python -m ensurepip --upgrade
RUN pip install -r requirements.txt

# Copy the rest of the application code
Expand Down
10 changes: 10 additions & 0 deletions base.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Use the official Python 3.9 slim image as the base image
FROM cgr.dev/chainguard/python:latest-dev as builder
ENV LANG=C.UTF-8
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
ENV PATH="/app/venv/bin:$PATH"
RUN pip install --upgrade pip
# these take a long time to build
RUN pip install matplotlib==3.8.4
RUN pip install pandas==2.2.2
89 changes: 45 additions & 44 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,19 @@ plugins = "numpy.typing.mypy_plugin,pydantic.mypy"
krr = "robusta_krr.main:run"

[tool.poetry.dependencies]
python = ">=3.9,<3.12"
python = ">=3.9,<=3.12.3"
typer = { extras = ["all"], version = "^0.7.0" }
pydantic = "^1.10.7"
kubernetes = "^26.1.0"
prometheus-api-client = "0.5.3"
numpy = "^1.24.2"
numpy = ">=1.26.4,<1.27.0"
alive-progress = "^3.1.2"
prometrix = "^0.1.17"
slack-sdk = "^3.21.3"
pandas = "2.2.2"
requests = "2.32.0"
pyyaml = "6.0.1"
typing-extensions = "4.6.0"



Expand Down
Loading

0 comments on commit 9178d2d

Please sign in to comment.