Skip to content

Commit

Permalink
Merge branch 'develop' into dashes-in-hostnames
Browse files Browse the repository at this point in the history
  • Loading branch information
pal03377 authored Oct 22, 2023
2 parents b9e15d3 + a54eb1e commit 207f318
Show file tree
Hide file tree
Showing 3 changed files with 404 additions and 345 deletions.
13 changes: 4 additions & 9 deletions module_programming_themisml/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@

# This is the Dockerfile for the module_example.

# Pytorch CPU version is not yet available for Python 3.1
FROM python:3.10
# Pytorch CPU version is not yet available for Python 3.12
FROM python:3.11
LABEL org.opencontainers.image.source=https://github.com/pal03377/Athena-New

# Environment variable Python in Docker
ENV PYTHONUNBUFFERED=1

WORKDIR /code

# Poetry
RUN pip install --no-cache-dir poetry==1.5.0
RUN pip install --no-cache-dir poetry==1.6.1

# Dependencies
COPY pyproject.toml poetry.lock ./
Expand All @@ -23,11 +23,6 @@ RUN poetry config virtualenvs.create true \
&& poetry config virtualenvs.in-project true \
&& poetry install --no-interaction --no-ansi

# Re-install pytorch in the CPU version because we don't have a GPU
RUN poetry add https://download.pytorch.org/whl/cpu/torch-2.1.0%2Bcpu-cp310-cp310-linux_x86_64.whl
# Somehow, the torch library needs sympy to be installed manually as well
RUN poetry add sympy==1.12

# Project files
COPY . ./

Expand Down
Loading

0 comments on commit 207f318

Please sign in to comment.