forked from asitang/sklearn-hierarchical-classification
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile.template
39 lines (31 loc) · 1.08 KB
/
Dockerfile.template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#
# Globality autogenerated Docker configuration
#
# This file is auto generated with globality-build.
# You should not make any changes to this file manually
#
# Any changes made to this file will be overwritten in the
# next version of the build.
#
# See: http://github.com/globality-corp/globality-build
#
#
FROM <REPO>/python-library:base-<SHA1>
# Setup invocation
#
# We expose the application on the standard HTTP port and use an entrypoint
# to customize the `dev` and `test` targets.
ENV NAME sklearn_hierarchical_classification
COPY README.md entrypoint.sh /src/
ENTRYPOINT ["./entrypoint.sh"]
# Install source
#
# We should not need to reinstall dependencies here, but we do need to import
# the distribution properly. We also save build arguments to the image using
# microcosm-compatible environment variables.
ARG BUILD_NUM
ARG SHA1
ENV SKLEARN-HIERARCHICAL-CLASSIFICATION__BUILD_INFO_CONVENTION__BUILD_NUM ${BUILD_NUM}
ENV SKLEARN-HIERARCHICAL-CLASSIFICATION__BUILD_INFO_CONVENTION__SHA1 ${SHA1}
COPY $NAME /src/$NAME/
RUN pip install --extra-index-url $EXTRA_INDEX_URL -e .