Dockerfile changes
This commit is contained in:
@@ -1,13 +1,13 @@
|
|||||||
FROM python:3.10
|
FROM python:3.10
|
||||||
WORKDIR /usr/local/app
|
WORKDIR /usr/local/app
|
||||||
|
|
||||||
ENV DISCORD_BOT_TOKEN ""
|
ENV DISCORD_BOT_TOKEN=""
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
RUN pip install --no-cache-dir --upgrade pip
|
RUN pip install --no-cache-dir --upgrade pip
|
||||||
RUN pip install --no-cache-dir -r requirements.txt
|
RUN pip install --no-cache-dir -r requirements.txt
|
||||||
|
|
||||||
RUN echo $DISCORD_BOT_TOKEN > .env
|
RUN echo DISCORD_BOT_TOKEN=$DISCORD_BOT_TOKEN > .env
|
||||||
|
|
||||||
CMD ["python3", "bot.py"]
|
CMD ["python3", "bot.py"]
|
||||||
Reference in New Issue
Block a user