Improve step order in Dockerfile

This commit is contained in:
2021-08-03 14:30:26 +02:00
parent 9c0adf1cae
commit 5d78c15e58

View File

@@ -1,7 +1,7 @@
FROM python:3.9.1-alpine FROM python:3.9.1-alpine
WORKDIR /usr/src/app WORKDIR /usr/src/app
COPY requirements.txt ./
RUN apk add ffmpeg musl-dev linux-headers gcc libffi-dev make opus RUN apk add ffmpeg musl-dev linux-headers gcc libffi-dev make opus
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt RUN pip install --no-cache-dir -r requirements.txt
COPY . . COPY . .
CMD ["bot.py"] CMD ["bot.py"]