hotfix for docker

Kaveen Kumarasinghe 1 year ago
parent c7e6a447d3
commit c10a2f0237

@ -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/

@ -31,7 +31,7 @@ from services.environment_service import EnvService
from models.openai_model import Model
__version__ = "9.0.1"
__version__ = "9.0.2"
PID_FILE = Path("bot.pid")

Loading…
Cancel
Save