-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
45 lines (34 loc) · 1.27 KB
/
Dockerfile
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
ARG COB_SW_VERSION
FROM codeblick/shopware-core:ce-${COB_SW_VERSION}
ENV SW_APP_ENV=production
ENV MYSQL_USER=shopware
ENV MYSQL_PASSWORD=7Iuagg3or7O4
ENV MYSQL_DATABASE=shopware
ENV MYSQL_HOST=127.0.0.1
ENV SHOP_LOCALE="de_DE"
ENV SHOP_HOST="localhost"
ENV SHOP_PATH=""
ENV SHOP_NAME="Demo Shop"
ENV SHOP_EMAIL="admin@localhost"
ENV SHOP_CURRENCY="EUR"
ENV ADMIN_USERNAME="admin"
ENV ADMIN_PASSWORD="0h4JDx7v6dFY"
ENV ADMIN_EMAIL="admin@localhost"
ENV ADMIN_NAME="admin"
ENV ADMIN_LOCALE="de_DE"
ARG COB_SW_VERSION
ENV SW_VERSION=${COB_SW_VERSION}
COPY ./assets/index.tpl /var/www/html/themes/Frontend/Responsive/frontend/index/index.tpl
COPY ./assets/.htaccess /var/www/html/.htaccess
ARG COB_DEMO_DATA_VERSION
COPY ./assets/SwagDemoDataDE_${COB_DEMO_DATA_VERSION} /var/www/html/engine/Shopware/Plugins/Community/Frontend/SwagDemoDataDE
COPY ./scripts/setup-shopware.sh /usr/local/bin/setup-shopware
RUN chmod +x /usr/local/bin/setup-shopware && \
apt update && apt install -qq -y mysql-server sudo && \
mkdir /migrations && \
sed -Ei 's/bind-address.*/bind-address=0.0.0.0/' /etc/mysql/mysql.conf.d/mysqld.cnf && \
apt autoremove -y && apt clean && rm -rf /var/lib/apt/lists/* && \
rm -r /etc/services.d/apache
EXPOSE 3306
VOLUME /var/lib/mysql
CMD ["setup-shopware"]