Kumi
076eb2d243
All checks were successful
Docker CI/CD / Docker Build and Push to Docker Hub (push) Successful in 6m19s
Moved from building the GPT bot Docker container on the fly to using a pre-built image, enhancing the setup's efficiency and reducing build times for deployments. Adjusted the server's exposed port to resolve conflicts and standardize deployment configurations. Additionally, locked in the `future` package version to ensure compatibility with legacy Python code, mitigating potential future incompatibility issues.
13 lines
No EOL
269 B
Docker
13 lines
No EOL
269 B
Docker
FROM python:3.12-slim
|
|
|
|
WORKDIR /app
|
|
COPY src/ /app/src
|
|
COPY pyproject.toml /app
|
|
COPY README.md /app
|
|
COPY LICENSE /app
|
|
|
|
RUN apt update && apt install -y build-essential libpython3-dev
|
|
RUN pip install .[all]
|
|
RUN pip install 'future==1.0.0'
|
|
|
|
CMD ["python", "-m", "gptbot"] |