File tree 2 files changed +18
-5
lines changed
2 files changed +18
-5
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ FROM ghcr.io/m-arcus/php-codestyle-swissknife-docker:base
15
15
# php-8.2-iconv \
16
16
# php-8.2-intl \
17
17
# php-8.2-mbstring \
18
- # php-8.2-mysqli \
19
18
# php-8.2-mysqlnd \
20
19
# php-8.2-openssl \
21
20
# php-8.2-pdo \
@@ -27,7 +26,8 @@ FROM ghcr.io/m-arcus/php-codestyle-swissknife-docker:base
27
26
# php-8.2-soap \
28
27
# php-8.2-sodium \
29
28
# php-8.2-xml \
30
- # php-8.2-zip
29
+ # php-8.2-zip && \
30
+ # rm -rf /var/cache/apk/* /var/tmp/* /tmp/*
31
31
32
32
LABEL org.opencontainers.image.authors="M-arcus" \
33
33
org.opencontainers.image.url="https://github.com/M-arcus/php-codestyle-swissknife-docker" \
@@ -37,8 +37,22 @@ LABEL org.opencontainers.image.authors="M-arcus" \
37
37
org.opencontainers.image.licenses="MIT" \
38
38
org.opencontainers.image.title="PHP Code Style Swissknife Docker"
39
39
40
+ # Set php settings
40
41
COPY php.ini /etc/php/conf.d/99-docker.ini
41
42
42
- COPY composer.json composer.lock ./
43
+ # Install composer and composer packages
44
+ ENV COMPOSER_HOME /composer
45
+ ENV COMPOSER_ALLOW_SUPERUSER 1
46
+ ENV PATH /composer/vendor/bin:$PATH
47
+ COPY composer.json composer.lock /composer/
48
+ RUN composer global install -d /composer/ --optimize-autoloader --no-interaction --no-progress --prefer-dist --no-dev && \
49
+ composer global clearcache && \
50
+ rm -rf /var/cache/apk/* /var/tmp/* /tmp/*
43
51
44
- RUN composer install --optimize-autoloader --no-interaction --no-progress --prefer-dist --no-dev
52
+ # Set vaolume and workdir
53
+ VOLUME /app
54
+ WORKDIR /app
55
+
56
+ # setup phpstan
57
+ ENV PHPSTAN_PRO_WEB_PORT=11111
58
+ EXPOSE "${PHPSTAN_PRO_WEB_PORT}"
Original file line number Diff line number Diff line change @@ -17,7 +17,6 @@ contents:
17
17
- php-8.2-iconv
18
18
- php-8.2-intl
19
19
- php-8.2-mbstring
20
- - php-8.2-mysqli
21
20
- php-8.2-mysqlnd
22
21
- php-8.2-openssl
23
22
- php-8.2-pdo
You can’t perform that action at this time.
0 commit comments