Skip to content
Snippets Groups Projects
Commit 6323b3d7 authored by Mgr. Pavel Břoušek's avatar Mgr. Pavel Břoušek
Browse files

feat: build docker

parent c19c41f4
Branches
Tags
No related merge requests found
......@@ -4,9 +4,9 @@ include:
docker-build:
variables:
TOKEN_PORTAL_VERSION: "2"
TOKEN_PORTAL_VERSION: "2.3.1"
PHP_VERSION: "7.4"
DEB_VERSION: "bullseye"
DEB_VERSION: "11"
BUILD_ARGS: |-
TOKEN_PORTAL_VERSION=${TOKEN_PORTAL_VERSION}
PHP_VERSION=${PHP_VERSION}
......
ARG TOKEN_PORTAL_VERSION
ARG PHP_VERSION=""
ARG DEB_VERSION=""
ARG CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX=""
FROM ${CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX}${CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX:+/}bitnami/php-fpm:${PHP_VERSION:-latest}${DEB_VERSION:+-debian-}${DEB_VERSION}
ARG TOKEN_PORTAL_VERSION
ARG DEBIAN_FRONTEND=noninteractive
ADD https://github.com/rciam/simple-oidc-client-php/releases/download/v${TOKEN_PORTAL_VERSION}/simple-oidc-client-php-v${TOKEN_PORTAL_VERSION}.zip /var/www/html/
COPY config.php /var/www/html/
EXPOSE 9000
WORKDIR /var/www/html
# docker-token-portal
A docker image with https://github.com/rciam/simple-oidc-client-php
## Volumes
You need to mount `config.php` into `/var/www/html/` in the container. See [documentation](https://github.com/rciam/simple-oidc-client-php#simple-oidc-client---authentication) or [example config](https://github.com/rciam/simple-oidc-client-php/blob/master/example-config.php) for inspiration.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment