카카오 webhook 응답을 위한 새 이미지 추가
This commit is contained in:
30
build/webhook/Dockerfile
Normal file
30
build/webhook/Dockerfile
Normal file
@ -0,0 +1,30 @@
|
||||
# Dockerfile for webhook server (Ubuntu 22.04 + Python Flask)
|
||||
|
||||
FROM ubuntu:22.04
|
||||
|
||||
ENV DEBIAN_FRONTEND=noninteractive \
|
||||
LANG=ko_KR.UTF-8 \
|
||||
LANGUAGE=ko_KR:ko \
|
||||
LC_ALL=ko_KR.UTF-8
|
||||
|
||||
# 기본 패키지 설치 및 로케일 설정
|
||||
RUN apt-get update && \
|
||||
apt-get install -y --no-install-recommends \
|
||||
locales tzdata python3 python3-pip curl ca-certificates && \
|
||||
locale-gen ko_KR.UTF-8 && \
|
||||
ln -sf /usr/share/zoneinfo/Asia/Seoul /etc/localtime && \
|
||||
dpkg-reconfigure --frontend noninteractive tzdata && \
|
||||
ln -sf /usr/bin/python3 /usr/bin/python && \
|
||||
apt-get clean && rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Flask 설치
|
||||
RUN pip3 install --no-cache-dir flask requests
|
||||
|
||||
# 작업 디렉토리
|
||||
WORKDIR /app
|
||||
|
||||
# 외부 접속 허용 포트
|
||||
EXPOSE 5000
|
||||
|
||||
# Flask 앱 실행
|
||||
CMD ["python3", "webhook.py"]
|
||||
Reference in New Issue
Block a user