Artples commited on
Commit
cb445fc
·
verified ·
1 Parent(s): 71f21dc

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -9
Dockerfile CHANGED
@@ -14,15 +14,15 @@ RUN apt-get update \
14
  && rm -rf /var/lib/apt/lists/*
15
 
16
  # Configure MariaDB to listen only locally
17
- RUN printf "%s
18
- " \
19
- "[mysqld]" \
20
- "bind-address=127.0.0.1" \
21
- "skip-name-resolve" \
22
- "character-set-server=utf8mb4" \
23
- "collation-server=utf8mb4_general_ci" \
24
- "innodb_file_per_table=1" \
25
- > /etc/mysql/mariadb.conf.d/99-hf-space.cnf
26
 
27
  # Startup script that launches MariaDB and then Nextcloud
28
  COPY start.sh /start.sh
 
14
  && rm -rf /var/lib/apt/lists/*
15
 
16
  # Configure MariaDB to listen only locally
17
+ # Note: use a simple block to avoid Docker line-continuation issues (a trailing space after "\" breaks builds)
18
+ RUN { \
19
+ echo "[mysqld]"; \
20
+ echo "bind-address=127.0.0.1"; \
21
+ echo "skip-name-resolve"; \
22
+ echo "character-set-server=utf8mb4"; \
23
+ echo "collation-server=utf8mb4_general_ci"; \
24
+ echo "innodb_file_per_table=1"; \
25
+ } > /etc/mysql/mariadb.conf.d/99-hf-space.cnf
26
 
27
  # Startup script that launches MariaDB and then Nextcloud
28
  COPY start.sh /start.sh