Commit 1834e184 authored by Dennis's avatar Dennis
Browse files

dockerfile

parent 1367cd3c
/ingest/
_pycache_
*.pyc
*.pyo
*.pyd
.Python
env
venv
.venv
pip-log.txt
pip-delete-this-directory.txt
.tox
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.log
.git
.mypy_cache
.pytest_cache
.hypotheses
logs/
.env
\ No newline at end of file
# Use an official Python runtime as a parent image
FROM python:3.11-slim
# Set the working directory in the container
WORKDIR /app
# Copy the requirements file into the container at /app
COPY requirements.txt .
# Install any needed packages specified in requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
# Copy the rest of the application code
COPY . .
# Create the logs directory (optional, as the code does it, but good for permissions if needed)
RUN mkdir -p logs
# Define environment variable for unbuffered output
ENV PYTHONUNBUFFERED=1
# Run bot_history.py when the container launches
# If you want to run bot.py instead, change this line to: CMD ["python", "bot.py"]
CMD ["python", "bot.py"]
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment