-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
54 lines (41 loc) · 1.57 KB
/
Dockerfile
File metadata and controls
54 lines (41 loc) · 1.57 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
43
44
45
46
47
48
49
50
51
52
53
54
FROM alpine:3.10
ENV COMPOSER_HOME=/var/cache/composer
ENV PROJECT_ROOT=/sw6
ENV ARTIFACTS_DIR=/artifacts
ENV LD_PRELOAD=/usr/lib/preloadable_libiconv.so
ENV COMPOSER_MEMORY_LIMIT=-1
RUN apk --no-cache add \
nginx supervisor curl zip unzip rsync git composer\
busybox-initscripts busybox-suid mysql-client\
php7 php7-fpm \
php7-ctype php7-curl php7-dom php7-fileinfo php7-gd \
php7-iconv php7-intl php7-json php7-mbstring \
php7-mysqli php7-openssl php7-pdo_mysql php7-sodium \
php7-session php7-simplexml php7-tokenizer php7-xml php7-xmlreader php7-xmlwriter \
php7-zip php7-zlib php7-phar php7-soap php7-redis \
gnu-libiconv php7-opcache php7-pecl-apcu
RUN apk --no-cache add npm bash
RUN adduser -u 1000 -D -h /sw6 sw6 sw6
RUN rm /etc/nginx/conf.d/default.conf
COPY config/etc /etc
WORKDIR /sw6
ENV SHOPWARE_URL=https://github.com/shopware/development.git
ENV PLATFORM_URL=https://github.com/shopware/platform.git
ENV APP_URL=http://localhost.local
RUN mkdir -p /cache &&\
mkdir -p /var/cache/composer/cache/files/
RUN git clone $SHOPWARE_URL /sw6
RUN cd /sw6 && composer require shopware/platform v6.3.5.0
RUN touch /sw6/install.lock && touch /sw6/.env
RUN chown -R sw6.sw6 /run \
/var/lib/nginx \
/var/tmp/nginx \
/var/log/nginx \
/var/cache/composer/ \
/sw6 \
/cache
USER sw6
RUN php ./dev-ops/generate_ssl.php
EXPOSE 8000
ENTRYPOINT [ "/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf" ]
HEALTHCHECK --timeout=10s CMD curl --silent --fail http://127.0.0.1:8000/fpm-ping