Stage 서버에 deploy 할 때 index.html 파일을 /var/www/html 폴더에 복사하는 내용 추가

This commit is contained in:
2026-07-06 22:25:34 +09:00
parent e17b1f0f1f
commit aeef3b63cb
2 changed files with 11 additions and 0 deletions
+7
View File
@@ -19,3 +19,10 @@ RUN { \
ENV TZ=Asia/Seoul
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN printf '#!/bin/sh\ncp /var/www/html/mouse_typing/index.html /var/www/html/index.html\nexec "$@"\n' \
> /usr/local/bin/entrypoint.sh \
&& chmod +x /usr/local/bin/entrypoint.sh
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
CMD ["apache2-foreground"]