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