31 lines
822 B
Docker
31 lines
822 B
Docker
# 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"]
|