version-0.2.0
This commit is contained in:
18
Dockerfile
18
Dockerfile
@@ -1,6 +1,14 @@
|
||||
FROM python:3.11-slim
|
||||
FROM python:slim
|
||||
|
||||
WORKDIR /app
|
||||
COPY requirements.txt .
|
||||
RUN pip install -r requirements.txt
|
||||
COPY . .
|
||||
CMD ["python", "bot/main.py"]
|
||||
COPY . /app
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get install -y git curl && \
|
||||
curl -sSL https://install.python-poetry.org | python - && \
|
||||
echo "export PATH=$PATH:/root/.local/bin" >> ~/.bashrc && \
|
||||
. ~/.bashrc && \
|
||||
poetry config virtualenvs.create false && \
|
||||
poetry install --no-dev
|
||||
|
||||
CMD python main.py
|
||||
|
Reference in New Issue
Block a user