Skip to content
3 changes: 2 additions & 1 deletion docker/openemr/8.0.1/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,9 @@ RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin -
# - Branch: --build-arg OPENEMR_VERSION=master
# - Tag: --build-arg OPENEMR_VERSION=v7.0.5
ARG OPENEMR_VERSION=master
ARG OPENEMR_GIT=https://github.com/openemr/openemr.git
FROM base AS openemr-source
RUN git clone https://github.com/openemr/openemr.git --branch "${OPENEMR_VERSION}" --depth 1 \
RUN git clone "${OPENEMR_GIT}" --branch "${OPENEMR_VERSION}" --depth 1 \
&& rm -rf openemr/.git

# Stage 2: Install PHP dependencies (Composer)
Expand Down
9 changes: 9 additions & 0 deletions docker/openemr/binary/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ docker build -t openemr-binary:latest .
### Build Arguments

- `OPENEMR_VERSION`: OpenEMR version (default: `7_0_4`)
- `OPENEMR_GIT`: OpenEMR git repository to build from (default: `https://github.com/openemr/openemr.git`)
- `BINARY_RELEASE_DATE`: Release date for binary package (default: `12282025`)
- `PHP_VERSION`: PHP version used in binaries (default: `8.5`)
- `ALPINE_VERSION`: Alpine Linux version (default: `3.22`)
Expand All @@ -37,6 +38,14 @@ docker build \
-t openemr-binary:latest .
```

```bash
docker build \
--build-arg OPENEMR_GIT=https://github.com/myuser/openemr.git \
--build-arg OPENEMR_VERSION=7_0_4 \
--build-arg BINARY_RELEASE_DATE=12292025 \
-t openemr-binary:latest .
```

## Usage

### Basic Usage with docker-compose
Expand Down