Skip to content

Commit

Permalink
Updated docker image to use alpine base image (removed gitlab build f…
Browse files Browse the repository at this point in the history
…ile)
  • Loading branch information
jbuncle committed Apr 26, 2021
1 parent 480daa5 commit 8c775c0
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 46 deletions.
8 changes: 8 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/vendor
/.git
/nbproject
/LICENSE
/README.md
/.gitignore
/.dockerignore
/Dockerfile
40 changes: 0 additions & 40 deletions .gitlab-ci.yml

This file was deleted.

23 changes: 17 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,21 @@
FROM cyberpearuk/php-build-docker
FROM alpine:3.13 as base
RUN apk add --no-cache \
php7-tokenizer \
php7-json \
php7 \
curl \
bash \
git

ADD . /php-autosemver
ENV PATH="/php-autosemver/bin:${PATH}"

FROM base as build
RUN apk add --no-cache composer
COPY ./ /php-autosemver
WORKDIR /php-autosemver
RUN composer install --no-dev
RUN composer install --no-dev --prefer-dist


WORKDIR /app
CMD tag
FROM base
COPY --from=build /php-autosemver /php-autosemver
ENV PATH="/php-autosemver/bin:${PATH}"
WORKDIR /app

0 comments on commit 8c775c0

Please sign in to comment.