21 lines
357 B
Docker
21 lines
357 B
Docker
|
|
FROM python:3.7-slim
|
||
|
|
|
||
|
|
WORKDIR /app
|
||
|
|
|
||
|
|
|
||
|
|
# Install dependencies
|
||
|
|
COPY requirements.txt .
|
||
|
|
RUN pip install --no-cache-dir -r requirements.txt && \
|
||
|
|
rm requirements.txt
|
||
|
|
|
||
|
|
# Copy application code
|
||
|
|
COPY pointsbot ./pointsbot
|
||
|
|
COPY pointsbot.py .
|
||
|
|
|
||
|
|
|
||
|
|
# Set environment to use unbuffered Python output
|
||
|
|
ENV PYTHONUNBUFFERED=1
|
||
|
|
|
||
|
|
# Run the bot
|
||
|
|
CMD ["python", "pointsbot.py"]
|