Initial commit

This commit is contained in:
Micha Gläß-Stöcker 2020-07-29 23:12:44 +02:00
commit 5eb17a48f8
2 changed files with 35 additions and 0 deletions

22
.gitlab-ci.yml Normal file
View file

@ -0,0 +1,22 @@
image: docker:19.03.1
services:
- docker:19.03.1-dind
variables:
DOCKER_DRIVER: overlay
DOCKER_TLS_CERTDIR: ""
stages:
- build
build:
image: docker:19.03.1
stage: build
services:
- docker:19.03.1-dind
variables:
IMAGE_TAG: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker build -t $IMAGE_TAG .
- docker push $IMAGE_TAG
- docker build -t $CI_REGISTRY_IMAGE:latest .
- docker push $CI_REGISTRY_IMAGE:latest

13
Dockerfile Normal file
View file

@ -0,0 +1,13 @@
FROM wordpress:fpm-alpine
RUN apk update && apk add --no-cache freetype-dev \
libjpeg-turbo-dev \
libwebp-dev \
libpng-dev \
libwebp-tools \
curl-dev
RUN docker-php-ext-configure gd --with-freetype --with-webp --with-jpeg && \
docker-php-ext-install gd
RUN docker-php-ext-install curl