Skip to content

Commit

Permalink
update the image with java openjdk and JAVA_HOME set
Browse files Browse the repository at this point in the history
  • Loading branch information
ria-htkw committed Mar 30, 2024
1 parent 927b59b commit 294b6b0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 22 deletions.
18 changes: 0 additions & 18 deletions .github/workflows/docker-image.yml

This file was deleted.

7 changes: 3 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ FROM python:3.10
RUN apt-get update && apt-get install -y \
wget \
tar \
openjdk-11-jdk \
&& rm -rf /var/lib/apt/lists/*

WORKDIR /usr/src/app
Expand All @@ -18,10 +19,8 @@ RUN tar -xzf fop-2.9-bin.tar.gz -C /usr/bin
RUN rm fop-2.9-bin.tar.gz
RUN chmod 755 /usr/bin/fop-2.9/fop/fop

# Install Java 8
RUN wget -nv https://storage.googleapis.com/server8koalixnet_backup/jdk-8u181-linux-x64.tar.gz
RUN tar -xzf jdk-8u181-linux-x64.tar.gz -C /usr/bin
RUN rm jdk-8u181-linux-x64.tar.gz
# Set JAVA_HOME environment variable
ENV JAVA_HOME /usr/lib/jvm/java-11-openjdk-amd64

# Port to expose
EXPOSE 8000
Expand Down

0 comments on commit 294b6b0

Please sign in to comment.