Initial commit
This commit is contained in:
commit
5b8b999770
2 changed files with 33 additions and 0 deletions
19
.gitlab-ci.yml
Normal file
19
.gitlab-ci.yml
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
image: docker:latest
|
||||
|
||||
variables:
|
||||
IMAGE_TAG: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME
|
||||
|
||||
stages:
|
||||
- build
|
||||
|
||||
before_script:
|
||||
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
|
||||
|
||||
build-master:
|
||||
stage: build
|
||||
script:
|
||||
- docker build --pull --no-cache -t $IMAGE_TAG .
|
||||
- docker push $IMAGE_TAG
|
||||
only:
|
||||
- master
|
||||
|
||||
14
Dockerfile
Normal file
14
Dockerfile
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
FROM composer:1.7 as composer
|
||||
|
||||
FROM php:7.2-fpm-alpine3.8
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY --from=composer /usr/bin/composer /usr/bin/composer
|
||||
|
||||
RUN apk add --no-cache icu icu-dev libxml2-dev nodejs-current nodejs-npm
|
||||
|
||||
RUN docker-php-ext-configure intl
|
||||
RUN docker-php-ext-install -j$(nproc) intl pdo_mysql
|
||||
RUN npm install -g yarn
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue