-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
64 additions
and
27 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,3 +1,4 @@ | ||
tensorflow-v2.6.4/ | ||
tensorflow-2.7.3/ | ||
rasa-3.2.1/ | ||
Dockerfile |
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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# The default Docker image | ||
ARG IMAGE_BASE_NAME | ||
ARG BASE_IMAGE_HASH | ||
ARG BASE_BUILDER_IMAGE_HASH | ||
|
||
# EDITED: use this build as image | ||
FROM ${IMAGE_BASE_NAME}:base-builder-${BASE_BUILDER_IMAGE_HASH} | ||
# copy files | ||
COPY . /build/ | ||
|
||
# change working directory | ||
WORKDIR /build | ||
|
||
# install dependencies | ||
# EDITED: add `poetry env use system` -> to use global python | ||
# EDITED: add `poetry config virtualenvs.create false` -> to install deps into global package-list instead of virtualenv | ||
RUN pip install --no-cache-dir -U "pip==21.*" && \ | ||
poetry env use system && \ | ||
poetry config virtualenvs.create false && \ | ||
poetry install --no-dev --no-root --no-interaction && \ | ||
poetry build -f wheel -n && \ | ||
pip install --no-deps dist/*.whl && \ | ||
rm -rf dist *.egg-info | ||
|
||
# set HOME environment variable | ||
ENV HOME=/app | ||
|
||
# update permissions & change user to not run as root | ||
WORKDIR /app | ||
RUN rm -rf /build | ||
|
||
|
||
RUN chgrp -R 0 /app && chmod -R g=u /app && chmod o+wr /app | ||
USER 1001 | ||
|
||
# create a volume for temporary data | ||
VOLUME /tmp | ||
|
||
# change shell | ||
SHELL ["/bin/bash", "-o", "pipefail", "-c"] | ||
|
||
# the entry point | ||
EXPOSE 5005 | ||
ENTRYPOINT ["rasa"] | ||
CMD ["--help"] |
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