failed_discord_bot/Dockerfile

20 lines
277 B
Docker
Raw Permalink Normal View History

# Use Alpine 3.11 as base image
FROM python:3.11-alpine
2023-10-29 13:48:48 +01:00
# Install dependencies
2023-10-29 13:48:48 +01:00
COPY requirements.txt ./
2024-01-12 14:27:27 +01:00
RUN pip install -r requirements.txt
# Set working directory
WORKDIR /app
2023-10-29 13:48:48 +01:00
# Bundle app source
COPY . .
2024-01-12 14:27:27 +01:00
# Expose port
EXPOSE 8080
2023-10-29 13:48:48 +01:00
# Run bot
CMD ["python", "bot.py"]