Commit 9da00541 authored by Victor Nikulshin's avatar Victor Nikulshin
Browse files

Create Dockerfile for Drupalizer with a custom entrypoint

The contents of the Dockerfile are based on the same file in boilerplate
meta-repository that is normally used in combination with Drupalizer.
parent 9c1cb39d
# docker Drupal
FROM savoirfairelinux/lampd
MAINTAINER Ernesto Rodriguez Ortiz <>
# Create entrypoint script
RUN mkdir -p /opt/init
RUN echo '#!/bin/bash\n\
exec /bin/sh -c "$*"'\
> /opt/init/ && chmod a+x /opt/init/
# Create project root directory and copy the structure
RUN mkdir -p /opt/sfl
COPY . /opt/sfl
# Setup ssh keys to clone git repo
RUN mv /opt/sfl/conf/id_rsa* /root/.ssh/
RUN cat /root/.ssh/ >> /root/.ssh/authorized_keys
RUN chmod 600 /root/.ssh/id_rsa*
RUN exec ssh-agent /bin/bash && ssh-add /root/.ssh/id_rsa
RUN ssh-keyscan >> /root/.ssh/known_hosts
#Copy vhost configuration and enable modules
RUN cp /opt/sfl/conf/vhost.conf /etc/apache2/sites-available/000-default.conf
RUN a2enmod rewrite vhost_alias
ENTRYPOINT ["/opt/init/"]
CMD ["/sbin/my_init"]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment