Skip to content

Commit

Permalink
Merge pull request laradock#3402 from abordage/add-jdk
Browse files Browse the repository at this point in the history
Add Java Development Kit
  • Loading branch information
bestlong authored Jul 24, 2023
2 parents 785d0c9 + 3b7932e commit b94d5af
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ WORKSPACE_INSTALL_EVENT=false
WORKSPACE_INSTALL_DNSUTILS=true
WORKSPACE_XDEBUG_PORT=9000
WORKSPACE_VITE_PORT=5173
WORKSPACE_INSTALL_JDK=true

### PHP_FPM ###############################################

Expand Down
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,7 @@ services:
- INSTALL_DOCKER_CLIENT=${PHP_FPM_INSTALL_DOCKER_CLIENT}
- INSTALL_DNSUTILS=${PHP_FPM_INSTALL_DNSUTILS}
- INSTALL_POPPLER_UTILS=${PHP_FPM_INSTALL_POPPLER_UTILS}
- INSTALL_JDK=${WORKSPACE_INSTALL_JDK}
- http_proxy
- https_proxy
- no_proxy
Expand Down
12 changes: 12 additions & 0 deletions workspace/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -1842,6 +1842,18 @@ RUN if [ ${INSTALL_DNSUTILS} = true ]; then \
apt-get update && apt-get install -y dnsutils \
;fi

###########################################################################
# Java Development Kit:
###########################################################################

ARG INSTALL_JDK=false

RUN if [ ${INSTALL_JDK} = true ]; then \
apt-get update \
&& apt-get install -y default-jdk ca-certificates-java \
&& update-ca-certificates -f \
;fi

#
#--------------------------------------------------------------------------
# Final Touch
Expand Down

0 comments on commit b94d5af

Please sign in to comment.