Answer the question
In order to leave comments, you need to log in
How to properly solve problems when building a docker container?
I have Dockerfile
FROM php:8.0-cli-alpine
RUN php -v
RUN apk update && apk add composer \
git \
nano \
libzip-dev \
unzip \
postgresql-dev
# Install PHP Extensions
RUN docker-php-ext-install pdo pdo_pgsql pdo_mysql zip opcache
# Enable PHP Extensions
RUN docker-php-ext-enable opcache
# Update Composer
RUN composer self-update --stable
RUN composer -V
WORKDIR /var/www/
RUN chown -R www-data.www-data /var/www/
COPY --chown=www-data /. /var/www/
# Download RoadRunner
RUN composer install && vendor/bin/spiral get-binary -l /usr/local/bin
ENTRYPOINT /var/www/up.sh
EXPOSE 8080
php:7.4-cli-alpine3.14
RUN docker-php-ext-install pdo pdo_pgsql pdo_mysql zip opcache fileinfo mbstring
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question