Newer
Older
&& apt-get install --assume-yes \
poppler-utils \
ENV PROJECT_FOLDER=/srv/sciencebeam-gym
WORKDIR ${PROJECT_FOLDER}
# builder
FROM base AS builder
COPY requirements.build.txt ./
RUN pip install --disable-pip-version-check --no-warn-script-location --user \
-r requirements.build.txt
COPY requirements.prereq.txt requirements.txt ./
RUN pip install --disable-pip-version-check --no-warn-script-location --user \
-r requirements.prereq.txt \
-r requirements.txt
RUN pip install --disable-pip-version-check --no-warn-script-location --user \
-r requirements.dev.txt
COPY sciencebeam_gym ./sciencebeam_gym
COPY tests ./tests
COPY *.conf *.sh *.in *.txt *.py .pylintrc .flake8 pytest.ini ./
# runtime image
FROM base AS runtime
COPY --from=builder /root/.local /root/.local
COPY --from=builder /root/nltk_data /root/nltk_data
COPY sciencebeam_gym ./sciencebeam_gym
COPY *.conf *.sh *.in *.txt *.py ./
ENV PATH ${PROJECT_FOLDER}/scripts:$PATH