Skip to content

Commit b3a5a45

Browse files
committed
checkdocker2
1 parent 46aa257 commit b3a5a45

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

Dockerfile

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# 베이스 이미지 선택
2+
FROM python:3.10-slim
3+
4+
# 작업 디렉토리 설정
5+
WORKDIR /app
6+
7+
RUN apt-get update && apt-get install -y \
8+
gcc \
9+
&& rm -rf /var/lib/apt/lists/*
10+
11+
# 의존성 파일 복사 및 설치
12+
COPY requirements.txt .
13+
RUN pip install --no-cache-dir -r requirements.txt
14+
15+
# 애플리케이션 코드 복사
16+
COPY . .
17+
18+
# 포트 노출 (예: Flask/FastAPI 등)
19+
EXPOSE 8000
20+
21+
# 실행 명령
22+
CMD ["python", "app.py"]
23+
```
24+

0 commit comments

Comments
 (0)