diff --git a/Dockerfile b/Dockerfile
index c1f2e6c..f965ed0 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -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
diff --git a/docker-compose.yml b/docker-compose.yml
index 3475a51..0962044 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -7,14 +7,13 @@ services:
context: .
dockerfile: Dockerfile
ports:
- - 30880:8080
- #- 30022:8443 # HTTPS port ?
- - 30022:29418
+ - 8080:8080 # HTTP
+ - 8443:8443 # HTTPS (Optionnal)
+ - 29418:29418 # SSH (Optionnal, disabled by default)
volumes:
- ./data:/gitbucket/gitbucket_data
- environment:
- # Does not work, for some reason.
- GITBUCKET_MAXFILESIZE: 67108864
restart: unless-stopped
- tty: true # Can be commented if you don't intend to use a shell in the container.
- stdin_open: true # Can also be commented for the same reason as above.
+
+ # Both of these can be commented if you don't intend to use a shell in the container.
+ tty: true
+ stdin_open: true
diff --git a/readme.md b/readme.md
index fa891e0..1f663aa 100644
--- a/readme.md
+++ b/readme.md
@@ -2,15 +2,15 @@
A simple docker-compose file that can be used to create a *GitBucket* container on SBCs.
## Requirements
-__CPU Architecture:__ ARM64 (Use the official image for AMD64)
-__RAM:__ At least 256 MiB
+__CPU Architecture:__ ARM64 (Use the [official image](https://hub.docker.com/r/gitbucket/gitbucket/) for AMD64)
+__RAM:__ Between 256 and 512 MiB
## Remarks
-This container is not intended to be used with an external database and forces *GitBucket* to use a local DB.
+This container is not intended to be used with an external database and forces GitBucket to use a local DB.
However, it should be relatively easy to use an external one if you change the `DATABASE_URL` environment variable.
-This container uses the Temurin OpenJDK distribution from [Adoptium](https://adoptium.net/).
-However, the `openjdk-11-jre-headless` and `openjdk-11-jdk-headless` packages from [bitnami/minideb](https://github.com/bitnami/minideb) can be used instead if you wish to.
+This container also uses the Temurin OpenJDK distribution from [Adoptium](https://adoptium.net/).
+However, the `openjdk-11-jre-headless` and `openjdk-11-jdk-headless` packages from [bitnami/minideb](https://github.com/bitnami/minideb) can be used instead if you wish to use the latest version when building the container.
## Building
In order to build this container, all you have to do is to clone this repository and run `docker-compose up`.