Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 32 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,16 +194,42 @@ class Calculator implements CalculatorInterface
# Dockerfile
FROM php:8.1-alpine

RUN apk add --no-cache autoconf openssl-dev g++ make pcre-dev icu-dev zlib-dev libzip-dev && \
docker-php-ext-install bcmath intl opcache zip sockets && \
apk del --purge autoconf g++ make
RUN apk add --no-cache --virtual .build-deps \
$PHPIZE_DEPS \
linux-headers \
&& apk add --update --no-cache \
openssl-dev \
pcre-dev \
icu-dev \
icu-data-full \
libzip-dev \
postgresql-dev \
protobuf \
grpc \
&& docker-php-ext-install \
bcmath \
intl \
opcache \
zip \
sockets \
pdo_pgsql \
&& pecl install protobuf \
&& pecl install grpc \
&& docker-php-ext-enable \
grpc \
protobuf \
&& pecl clear-cache \
&& apk del --purge .build-deps

WORKDIR /usr/src/app

COPY --from=composer:latest /usr/bin/composer /usr/bin/composer

COPY composer.json composer.lock ./

#DEV
#RUN composer install --no-scripts --no-progress --no-interaction

RUN composer install --no-dev --no-scripts --prefer-dist --no-progress --no-interaction

RUN ./vendor/bin/rr get-binary --location /usr/local/bin
Expand All @@ -218,5 +244,8 @@ RUN composer dump-autoload --optimize && \

EXPOSE 8080

#DEV
# CMD ["rr", "serve", "-c", ".rr.dev.yaml"]

CMD ["rr", "serve"]
```