代码拉取完成,页面将自动刷新
同步操作将从 LittleBBB/rasa 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
# Create common base stage
FROM python:3.6-slim as base
WORKDIR /build
# Create virtualenv to isolate builds
RUN python -m venv /build
# Install common libraries
RUN apt-get update -qq \
&& apt-get install -y --no-install-recommends \
# required by psycopg2 at build and runtime
libpq-dev \
# required for health check
curl \
&& apt-get autoremove -y
# Make sure we use the virtualenv
ENV PATH="/build/bin:$PATH"
# Stage to build and install everything
FROM base as builder
WORKDIR /src
# Install all required build libraries
RUN apt-get update -qq \
&& apt-get install -y --no-install-recommends \
build-essential \
wget \
openssh-client \
graphviz-dev \
pkg-config \
git-core \
openssl \
libssl-dev \
libffi6 \
libffi-dev \
libpng-dev
# Copy only what we really need
COPY README.md .
COPY setup.py .
COPY setup.cfg .
COPY MANIFEST.in .
COPY requirements.txt .
# Install Rasa and its dependencies
RUN pip install -U pip && pip install --no-cache-dir -r requirements.txt
# Install Rasa as package
COPY rasa ./rasa
RUN pip install .[sql]
# Runtime stage which uses the virtualenv which we built in the previous stage
FROM base AS runner
# Copy virtualenv from previous stage
COPY --from=builder /build /build
WORKDIR /app
# Create a volume for temporary data
VOLUME /tmp
# Make sure the default group has the same permissions as the owner
RUN chgrp -R 0 . && chmod -R g=u .
# Don't run as root
USER 1001
EXPOSE 5005
ENTRYPOINT ["rasa"]
CMD ["--help"]
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。