Skip to content

Commit 1a4265c

Browse files
committed
move startupservice.sh into config and add output
1 parent 67e1690 commit 1a4265c

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@ RUN wp core download --allow-root
6565

6666

6767
# Initialize and start Apache service
68-
COPY startupservice.sh /startupservice.sh
68+
COPY config/startupservice.sh /startupservice.sh
6969
RUN chmod +x /startupservice.sh
7070

7171
# Expose ports for Apache and MariaDB
7272
EXPOSE 80
7373

74-
ENTRYPOINT ["/startupservice.sh"]
74+
CMD ["/startupservice.sh"]

config/startupservice.sh

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
3+
/sbin/apache2ctl -v
4+
echo 'Starting webserver: http://127.0.0.1:8080'
5+
# Start Apache in the foreground
6+
/sbin/apache2ctl -D FOREGROUND -k start

startupservice.sh

-4
This file was deleted.

0 commit comments

Comments
 (0)