Initial commit
This commit is contained in:
20
Dockerfile
Normal file
20
Dockerfile
Normal file
@@ -0,0 +1,20 @@
|
||||
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"]
|
||||
Reference in New Issue
Block a user