Stage 서버 배포 구현 - Jenkins의 freestyle 방식

This commit is contained in:
2026-07-10 18:27:36 +09:00
parent be5b2ad6e6
commit 97fa4d8390
7 changed files with 181 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
FROM php:7.3-apache
RUN apt-get update && apt-get install -y libonig-dev \
&& docker-php-ext-install mysqli mbstring \
&& rm -rf /var/lib/apt/lists/*
RUN a2enmod rewrite
RUN { \
echo '<Directory /var/www/html>'; \
echo ' AllowOverride All'; \
echo '</Directory>'; \
echo ''; \
echo '<FilesMatch "\.(php|html|htm|inc)$">'; \
echo ' SetHandler application/x-httpd-php'; \
echo '</FilesMatch>'; \
} > /etc/apache2/conf-available/chocomae.conf \
&& a2enconf chocomae
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"]