Skip to content

Commit

Permalink
added Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
LLkaia committed Jan 2, 2024
1 parent 1bd4a03 commit d122331
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM python:3.11

WORKDIR /usr/local/etc/lappy/
COPY ./requirements.txt .
RUN pip install -r requirements.txt
COPY ./server ./server
COPY ./main.py .

CMD python3 main.py
2 changes: 1 addition & 1 deletion server/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from server.models.search_result import Period


MONGO_DETAILS = 'mongodb://localhost:27017'
MONGO_DETAILS = 'mongodb://mongodb:27017'
client = motor.motor_asyncio.AsyncIOMotorClient(MONGO_DETAILS)
db = client.news

Expand Down

0 comments on commit d122331

Please sign in to comment.