Skip to content

Commit bf3a0b1

Browse files
entrypoint
1 parent 013c00c commit bf3a0b1

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎Dockerfile‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini" && \
1616
RUN docker-php-ext-install pdo pdo_mysql mysqli
1717
RUN apt-get update -y && apt-get install python3 -y && curl -L https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -o /usr/local/bin/yt-dlp && chmod a+rx /usr/local/bin/yt-dlp
1818
COPY . /var/www/html/lwt
19-
RUN chmod -R 777 /var/www/html/lwt/media
2019

2120
# creating connect.inc.php
2221
ARG DB_HOSTNAME=db
@@ -26,3 +25,5 @@ ARG DB_DATABASE=learning-with-texts
2625

2726
RUN printf '<?php\n$server = "%s";\n$userid = "%s";\n$passwd = "%s";\n$dbname = "%s";\n?>' "$DB_HOSTNAME" "$DB_USER" "$DB_PASSWORD" "$DB_DATABASE" > /var/www/html/lwt/connect.inc.php
2827

28+
ENTRYPOINT chmod -R 777 /var/www/html/lwt/media
29+

0 commit comments

Comments
 (0)