hot fix for docker

Kaveen Kumarasinghe 1 year ago
parent b4ddee81f7
commit 52df4cd457

@ -4,6 +4,7 @@ ARG PY_VERSION=3.9
FROM python:${PY_VERSION} as base
FROM base as builder
ARG PY_VERSION
COPY . .
RUN mkdir /install /src
WORKDIR /install
@ -23,6 +24,7 @@ RUN pip install --target="/install" /src
# Copy minimal to main image (to keep as small as possible)
FROM python:${PY_VERSION}-slim
ARG PY_VERSION
COPY . .
COPY --from=builder /install /usr/local/lib/python${PY_VERSION}/site-packages
RUN mkdir -p /opt/gpt3discord/etc
COPY gpt3discord.py /opt/gpt3discord/bin/

@ -30,7 +30,7 @@ from services.environment_service import EnvService
from models.openai_model import Model
__version__ = "8.7.5"
__version__ = "8.7.6"
PID_FILE = Path("bot.pid")

Loading…
Cancel
Save