chore:Docker MNG에 GD 확장 추가 (PDF 서명 합성용)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
33
sam/docker/mng/Dockerfile
Executable file
33
sam/docker/mng/Dockerfile
Executable file
@@ -0,0 +1,33 @@
|
||||
FROM php:8.4-fpm
|
||||
|
||||
# 필수 패키지/확장 설치
|
||||
RUN apt-get update && apt-get install -y \
|
||||
git \
|
||||
unzip \
|
||||
libzip-dev \
|
||||
libicu-dev \
|
||||
libxml2-dev \
|
||||
libpng-dev \
|
||||
libfreetype-dev \
|
||||
libjpeg62-turbo-dev \
|
||||
nginx \
|
||||
supervisor \
|
||||
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
|
||||
&& docker-php-ext-install zip mysqli pdo pdo_mysql intl soap gd
|
||||
|
||||
# Composer 설치
|
||||
COPY --from=composer:2 /usr/bin/composer /usr/bin/composer
|
||||
|
||||
# 타임존 설정
|
||||
RUN echo "date.timezone=Asia/Seoul" > /usr/local/etc/php/conf.d/timezone.ini
|
||||
|
||||
# 포트 개방
|
||||
EXPOSE 80
|
||||
|
||||
# supervisor로 nginx+php-fpm 동시 기동
|
||||
CMD ["/usr/bin/supervisord"]
|
||||
|
||||
# entrypoint.sh 복사 및 권한
|
||||
COPY ./mng/entrypoint.sh /entrypoint.sh
|
||||
RUN chmod +x /entrypoint.sh
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
Reference in New Issue
Block a user