Skip to content

Commit

Permalink
[ALPHA] fix Dockerfile
Browse files Browse the repository at this point in the history
- Change to JDK 21 instead of 17
- Fix download URL
  • Loading branch information
RoiArthurB committed Aug 21, 2024
1 parent 8d32082 commit 2363770
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tags/alpha/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM ubuntu:latest

MAINTAINER RoiArthurB <https://github.com/RoiArthurB>

LABEL org.label-schema.name="GAMA Headless Docker (1.9.4)" \
LABEL org.label-schema.name="GAMA Headless Docker - Pre-release" \
org.label-schema.description="Docker image of GAMA headless" \
org.label-schema.url="http://gama-platform.org" \
org.label-schema.vcs-ref=$VCS_REF \
Expand All @@ -19,7 +19,7 @@ RUN mkdir -p /opt/gama-platform
RUN cd /opt/gama-platform

# Install GAMA v1.9.4 w/o JDK
RUN wget -q $(curl https://api.github.com/repos/gama-platform/gama/releases/tags/1.9.4 | grep "/GAMA_1.9.4_Linux_[0-9].*zip" | cut -d ':' -f 2,3 | tr -d \") -O "gama.zip" && \
RUN wget -q $(curl https://api.github.com/repos/gama-platform/gama/releases/tags/2024.07.0 | grep "/GAMA_1.9.4_Linux_[0-9].*zip" | cut -d ':' -f 2,3 | tr -d \") -O "gama.zip" && \
unzip gama.zip -d /opt/gama-platform

# Set absolute path
Expand All @@ -29,7 +29,7 @@ RUN sed -i 's/$( dirname "${BASH_SOURCE\[0\]}" )/\/opt\/gama-platform\/headless/
RUN chmod +x /opt/gama-platform/Gama /opt/gama-platform/headless/gama-headless.sh

# Release image
FROM openjdk:17-jdk-alpine
FROM openjdk:21-jdk-alpine
COPY --from=0 /opt/gama-platform /opt/gama-platform

RUN apk --no-cache add bash ttf-dejavu libstdc++ libc6-compat \
Expand Down

0 comments on commit 2363770

Please sign in to comment.