Skip to content

Commit f9ea631

Browse files
author
yashksaini-coder
committed
feat: add Dockerfile and docker-compose.yml for containerization
1 parent 8054319 commit f9ea631

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

Dockerfile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
FROM python:3.9-alpine
2+
3+
WORKDIR /usr/src/app
4+
5+
COPY requirements.txt ./
6+
7+
ENV GROQ_API_KEY=your_api_key
8+
9+
RUN pip install -r requirements.txt
10+
11+
COPY . .
12+
13+
EXPOSE 80
14+
15+
CMD ["fastapi", "run", "app.py", "--port", "80"]

docker-compose.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
services:
2+
web:
3+
build: .
4+
ports:
5+
- "8000:80"
6+
volumes:
7+
- .:/app

0 commit comments

Comments
 (0)