Skip to content

Instantly share code, notes, and snippets.

@haakym
Created February 14, 2018 10:40
Show Gist options
  • Save haakym/0baf32e9f35241fe3fa2b9f14068933d to your computer and use it in GitHub Desktop.
Save haakym/0baf32e9f35241fe3fa2b9f14068933d to your computer and use it in GitHub Desktop.
Dockerfile draft for Apache/PHP using Paul Redmond's tutorial - https://bitpress.io/simple-approach-using-docker-with-php/ with additions to get kerberos running
FROM php:7.1.8-apache
MAINTAINER Dominic Jones
COPY . /srv/app
COPY .docker/vhost.conf /etc/apache2/sites-available/000-default.conf
COPY .docker/kerberos.keytab /etc/kerberos.keytab
COPY .docker/krb5.conf /etc/krb5.conf
WORKDIR /srv/app
RUN docker-php-ext-install mbstring pdo pdo_mysql \
&& chown -R www-data:www-data /srv/app \
&& chown -R www-data:www-data /etc/kerberos.keytab \
&& apt-get update && apt-get install -y \
apt-transport-https \
krb5-user \
libapache2-mod-auth-kerb \
&& a2enmod auth_kerb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment