-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Docker full or minimal, make docker, README clean
Dockerfile now conditionally builds with minimal requirements or full requirements if docker build --build-arg BUILD=full set. Makefile now has `make docker` which will build a full requirements and let you edit your development source README is markdownlint'ed
- Loading branch information
Showing
3 changed files
with
162 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,20 @@ | ||
FROM python:3.11.5-bookworm | ||
# https://stackoverflow.com/questions/31528384/conditional-copy-add-in-dockerfile | ||
# full means do a full requirements copy | ||
ARG BUILD=base | ||
|
||
RUN mkdir SlashGPT | ||
WORKDIR /SlashGPT | ||
FROM python:3.11.5-bookworm as slashgpt_base | ||
ONBUILD COPY requirements.txt requirements.txt | ||
|
||
FROM python:3.11.5-bookworm as slashgpt_full | ||
ONBUILD COPY requirements/full.txt requirements.txt | ||
|
||
# hadolint ignore=DL3006 | ||
FROM slashgpt_${BUILD} | ||
RUN pip install --no-cache-dir -r requirements.txt && \ | ||
pip install --no-cache-dir playsound==1.3.0 | ||
|
||
WORKDIR /SlashGPT | ||
RUN git clone https://github.com/snakajima/SlashGPT.git | ||
|
||
WORKDIR /SlashGPT/SlashGPT | ||
|
||
RUN pip install -r requirements.txt | ||
RUN pip install playsound | ||
COPY .env .env | ||
COPY .env .env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.