-
Notifications
You must be signed in to change notification settings - Fork 203
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: ArthurTemporim <[email protected]>
- Loading branch information
1 parent
92a02d7
commit 1c3cb03
Showing
7 changed files
with
18 additions
and
21 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
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
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
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
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,8 @@ | ||
FROM lappis/coach:boilerplate as coach | ||
FROM lappis/botrequirements:boilerplate | ||
FROM botrequirements | ||
|
||
WORKDIR /bot | ||
|
||
COPY ./bot /bot | ||
COPY ./modules /modules | ||
COPY --from=coach /src_models/ /bot/models/ | ||
|
||
RUN chown -R 1001 /bot/models && chmod -R 750 /bot/models | ||
|
||
RUN find . | grep -E "(__pycache__|\.pyc|\.pyo$)" | xargs rm -rf |
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,11 +1,7 @@ | ||
FROM lappis/botrequirements:boilerplate | ||
FROM botrequirements as coach | ||
|
||
COPY ./bot/ /coach/ | ||
WORKDIR /bot | ||
|
||
RUN mkdir /src_models | ||
|
||
WORKDIR /coach | ||
COPY ./bot/ /bot/ | ||
|
||
RUN make train | ||
|
||
RUN find /. | grep -E "(__pycache__|\.pyc|\.pyo$)" | xargs rm -rf |
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,4 +1,4 @@ | ||
FROM python:3.6-slim | ||
FROM python:3.6-slim as botrequirements | ||
|
||
RUN apt update && apt install -y gcc make | ||
|
||
|