Compare commits
10 Commits
a30519af59
...
c58d366f9b
Author | SHA1 | Date | |
---|---|---|---|
c58d366f9b | |||
194e20bb5f | |||
709e93f4c4 | |||
35f5766c04 | |||
bf34be2bbb | |||
8c058d5006 | |||
55041227cf | |||
e556207a20 | |||
8ba41cb78b | |||
9a8e11e064 |
@ -1,28 +0,0 @@
|
||||
# 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
|
11
Dockerfile
11
Dockerfile
@ -1,10 +1,13 @@
|
||||
FROM php:7.4-apache
|
||||
FROM php:8-apache
|
||||
EXPOSE 80
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y wget \
|
||||
RUN apt update \
|
||||
&& apt install -y wget gnupg \
|
||||
&& 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 pdo_mysql mysqli
|
||||
&& 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/*
|
||||
|
Loading…
Reference in New Issue
Block a user