new file: .gitignore new file: Dockerfile new file: README.md new file: app.py new file: requirements.txt
20 lines
337 B
Docker
20 lines
337 B
Docker
FROM python:3.10-slim
|
|
|
|
WORKDIR /app
|
|
|
|
RUN apt-get update && apt-get install -y \
|
|
libffi-dev \
|
|
libnacl-dev \
|
|
python3-dev \
|
|
&& apt-get clean \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
COPY . .
|
|
|
|
ENV DISCORD_TOKEN=$DISCORD_TOKEN
|
|
|
|
CMD ["python", "app.py"]
|