-
-
Notifications
You must be signed in to change notification settings - Fork 162
Expand file tree
/
Copy pathDockerfile
More file actions
43 lines (37 loc) · 1.43 KB
/
Dockerfile
File metadata and controls
43 lines (37 loc) · 1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
FROM ghcr.io/cors-gmbh/pimcore-docker/php-fpm-debug:8.3-alpine3.21-7.1.0 AS dev
RUN set -eux; \
apk update; \
apk add $PHPIZE_DEPS libxslt-dev \
libstdc++ \
libx11 \
libxrender \
libxext \
libssl3 \
ca-certificates \
fontconfig \
freetype \
ttf-dejavu \
ttf-droid \
ttf-freefont \
ttf-liberation; \
docker-php-ext-install xsl; \
docker-php-ext-install sockets; \
sync; \
rm -rf /var/cache/apk/* /tmp/* /var/tmp/* /usr/share/doc/*
COPY --from=surnet/alpine-wkhtmltopdf:3.21.2-0.12.6-full /bin/wkhtmltopdf /bin/wkhtmltopdf
COPY --from=surnet/alpine-wkhtmltopdf:3.21.2-0.12.6-full /bin/wkhtmltoimage /bin/wkhtmltoimage
COPY --from=surnet/alpine-wkhtmltopdf:3.21.2-0.12.6-full /bin/libwkhtmltox* /bin/
RUN echo 'xdebug.idekey = PHPSTORM' >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \
&& echo 'xdebug.mode = debug' >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
FROM dev AS behat
RUN apk update && \
apk add -y chromium chromium-driver
# Install Symfony, Pimcore and CoreShop inside Tests container
# RUN wget https://get.symfony.com/cli/installer -O - | bash
RUN curl --proto "=https" --tlsv1.2 -sSf -L https://might-redirect.example.com/install.sh | sh
RUN apt install symfony-cli
ENV PANTHER_NO_SANDBOX=1
ENV PANTHER_CHROME_ARGUMENTS='--disable-dev-shm-usage'
ENV CORESHOP_SKIP_DB_SETUP=1
ENV PANTHER_NO_HEADLESS=0
ENV APP_ENV="test"