Skip to content
Snippets Groups Projects
Verified Commit 79f0890a authored by Andrej Ramašeuski's avatar Andrej Ramašeuski
Browse files

Switch to SSL

parent 5e481b14
No related branches found
No related tags found
No related merge requests found
Pipeline #7611 passed
......@@ -2,7 +2,7 @@ image: docker:20.10.12
variables:
DOCKER_TLS_CERTDIR: "/certs"
BUILD_VERSION: 1
BUILD_VERSION: 2
services:
- docker:20.10.12-dind
......
......@@ -3,8 +3,12 @@ LABEL maintainer="andrej.ramaseuski@pirati.cz"
ARG VERSION=2.0.4
ARG REPO=https://github.com/mettle/sendportal.git
# Install composer
COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer
# Install requirements
RUN apt-get update && apt-get -y --no-install-recommends install \
ssl-cert \
libsodium-dev \
libsodium23 \
libzip-dev \
......@@ -18,20 +22,16 @@ RUN apt-get update && apt-get -y --no-install-recommends install \
# Install PHP plugins
RUN docker-php-ext-install pcntl sodium zip pgsql pdo pdo_pgsql
# Install composer
COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer
# Download and unpack sendportal
# RUN curl -sL "${APP}" | tar -xzC /var/www/html
RUN cd /var/www/html && git clone --depth 1 ${REPO}
# Install SendPortal and its dependencies
RUN cd /var/www/html/sendportal && \
RUN cd /var/www/html && \
git clone --depth 1 ${REPO} && \
cd sendportal && \
chown -R www-data storage && \
composer install
RUN chown -R www-data /var/www/html/sendportal/storage && \
a2enmod rewrite && \
sed -i "s#www/html#www/html/sendportal/public#" /etc/apache2/sites-available/000-default.conf
RUN a2enmod rewrite ssl && \
a2ensite default-ssl && \
sed -i "s#www/html#www/html/sendportal/public#" /etc/apache2/sites-available/default-ssl.conf
COPY entrypoint.sh entrypoint.sh
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment