File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed
Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change 1+ FROM apiaryio/drafter:latest as drafter
2+ FROM composer:latest as composer
3+
4+ FROM php:7.4-cli-alpine as build
5+ RUN apk add --no-cache \
6+ $PHPIZE_DEPS \
7+ openssl-dev
8+ RUN pecl install uopz \
9+ && docker-php-ext-enable uopz
10+ RUN echo "phar.readonly = 0" > "$PHP_INI_DIR/conf.d/phar.ini"
11+ COPY --from=composer /usr/bin/composer /usr/bin/composer
12+ COPY . /usr/src/phpdraft
13+ WORKDIR /usr/src/phpdraft
14+ RUN /usr/bin/composer install
15+ RUN vendor/bin/phing phar-nightly
16+ COPY build/out/phpdraft-nightly.phar /usr/local/bin/phpdraft
17+
18+ FROM php:7.4-cli-alpine
19+ LABEL maintainer="Sean Molenaar sean@seanmolenaar.eu"
20+ RUN apk add --no-cache gcc
21+ COPY --from=drafter /usr/local/bin/drafter /usr/local/bin/drafter
22+ COPY --from=build /usr/local/bin/phpdraft /usr/local/bin/phpdraft
23+ ENTRYPOINT /usr/local/bin/phpdraft -f /tmp/drafter/full_test.apib
You can’t perform that action at this time.
0 commit comments