From 52df4cd457c935f6725603a34d5d0d04f9c601d7 Mon Sep 17 00:00:00 2001 From: Kaveen Kumarasinghe Date: Wed, 1 Feb 2023 10:25:42 -0500 Subject: [PATCH] hot fix for docker --- Dockerfile | 2 ++ gpt3discord.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 34316ab..94c28f6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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/ diff --git a/gpt3discord.py b/gpt3discord.py index e57b460..c94b173 100644 --- a/gpt3discord.py +++ b/gpt3discord.py @@ -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")