1
0

Changed root container to "eclipse-temurin:latest", Improved comments and readme

Update Dockerfile, docker-compose.yml, and readme.md
This commit is contained in:
2021-11-29 06:09:35 +01:00
parent d1b7d64c6b
commit 18db8c1d07
3 changed files with 19 additions and 25 deletions

View File

@@ -1,21 +1,16 @@
FROM bitnami/minideb:latest
FROM eclipse-temurin:latest
# Preparing the folders and installing packages.
RUN mkdir /gitbucket /java && apt-get update && apt-get -y install bash wget
# Preparing GitBucket's folder and installing packages.
RUN mkdir /gitbucket && apt-get update
# Comment if you don't need a shell access via bash in the container.
# RUN apt-get -y install bash
# Uncomment if you are using a plugin that requires Git to be installed.
# RUN apt-get -y install git
# Downloading and extracting Temurin 17.0.1+12 from Adoptium.
RUN wget -q -O /java/openjdk.tar.gz "https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.1%2B12/OpenJDK17U-jdk_aarch64_linux_hotspot_17.0.1_12.tar.gz"
RUN tar -xf /java/openjdk.tar.gz -C /java && mv /java/jdk-17.0.1+12 /java/jdk && rm -f /java/openjdk.tar.gz
# Setting up Java's environment variables
ENV JAVA_HOME /java/jdk
ENV PATH $PATH:/java/jdk/bin
# Downloading gitBucket 4.36.2
RUN wget -q -O /gitbucket/gitbucket.war "https://github.com/gitbucket/gitbucket/releases/download/4.36.2/gitbucket.war"
ADD https://github.com/gitbucket/gitbucket/releases/download/4.36.2/gitbucket.war /gitbucket/gitbucket.war
# Setting up required GitBucket's environment variables
ENV GITBUCKET_HOME /gitbucket/gitbucket_data