-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' into do_docker_action_fixes
- Loading branch information
Showing
1 changed file
with
27 additions
and
2 deletions.
There are no files selected for viewing
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
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"] |