Skip to content

Commit

Permalink
Merge branch 'dev' into do_docker_action_fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ireneisdoomed authored Apr 26, 2024
2 parents 54d8b41 + df75870 commit 28b9b97
Showing 1 changed file with 27 additions and 2 deletions.
29 changes: 27 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,33 @@
FROM python:3.10
FROM python:3.10-bullseye


RUN apt-get update && \
apt-get install -y openjdk-11-jdk && \
apt-get clean && rm -rf /var/lib/apt/lists/*

RUN java -version

# Set environment variables for Java
ENV JAVA_HOME /usr/lib/jvm/java-11-openjdk-amd64
ENV PATH=$PATH:$JAVA_HOME/bin

RUN pip install poetry==1.7.1

COPY . .
ENV POETRY_NO_INTERACTION=1 \
POETRY_VIRTUALENVS_IN_PROJECT=1 \
POETRY_VIRTUALENVS_CREATE=1 \
POETRY_CACHE_DIR=/tmp/poetry_cache

WORKDIR /app

COPY pyproject.toml poetry.lock ./
RUN touch README.md

RUN poetry config installer.max-workers 10
RUN poetry install --without dev,docs,tests --no-root --no-interaction --no-ansi -vvv && rm -rf $POETRY_CACHE_DIR

COPY src ./src

RUN poetry install --without dev,docs,tests

ENTRYPOINT ["poetry", "run", "gentropy"]

0 comments on commit 28b9b97

Please sign in to comment.