Compare commits

..

No commits in common. "c58d366f9b00138eeaba67a2302d90d39fbdffb4" and "a30519af598b829dafe09f31f65f527d1164070c" have entirely different histories.

2 changed files with 32 additions and 7 deletions

28
.gitlab-ci.yml Normal file
View File

@ -0,0 +1,28 @@
# This file is a template, and might need editing before it works on your project.
docker-build-master:
# Official docker image.
image: docker:latest
stage: build
services:
- docker:dind
before_script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
script:
- docker build --pull -t "$CI_REGISTRY_IMAGE" .
- docker push "$CI_REGISTRY_IMAGE"
only:
- master
docker-build:
# Official docker image.
image: docker:latest
stage: build
services:
- docker:dind
before_script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
script:
- docker build --pull -t "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG" .
- docker push "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG"
except:
- master

View File

@ -1,13 +1,10 @@
FROM php:8-apache
FROM php:7.4-apache
EXPOSE 80
RUN apt update \
&& apt install -y wget gnupg \
RUN apt-get update \
&& apt-get install -y wget \
&& wget https://dl-ssl.google.com/dl/linux/direct/mod-pagespeed-stable_current_amd64.deb -O /tmp/modpagespeed.deb \
&& dpkg -i /tmp/modpagespeed.deb \
&& rm /tmp/modpagespeed.deb \
&& service apache2 restart \
&& mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini" \
&& docker-php-ext-install -j$(nproc) opcache \
&& apt purge -y wget \
&& apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 78BD65473CB3BD13 \
&& rm -rf /var/lib/apt/lists/*
&& docker-php-ext-install -j$(nproc) opcache pdo_mysql mysqli