Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

Commit

Permalink
Add PYTHONPATH and default config to Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
thought-tobi committed Mar 27, 2024
1 parent dd6437d commit c10eeca
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
5 changes: 1 addition & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
.env
venv
.envrc
.idea
log
__pycache__
ec2-key-pair.pem
data

dump/
graphs/
Expand Down
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
FROM python:3.11-slim-bullseye

ENV TELEGRAM_TOKEN=""
ENV MONGODB_HOST="localhost:27017"
ENV MONGODB_HOST="host.docker.internal:27017"
ENV PYTHONPATH=./

# install dependencies
COPY package/requirements.txt .
RUN python3 -m pip install -r requirements.txt

COPY src ./src/
COPY config.yaml .

RUN python3 -m pip install -r requirements.txt

CMD ["python", "src/app.py"]

0 comments on commit c10eeca

Please sign in to comment.