generated from sci-oer/custom-resource-template
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
35 lines (25 loc) · 1.38 KB
/
Dockerfile
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
FROM scioer/base-resource:sha-40bb95e
LABEL org.opencontainers.version="v1.0.0"
LABEL org.opencontainers.image.authors="Marshall Asch <masch@uoguelph.ca> (https://marshallasch.ca)"
LABEL org.opencontainers.image.source="https://github.com/sci-oer/python-resource.git"
LABEL org.opencontainers.image.vendor="sci-oer"
LABEL org.opencontainers.image.licenses="GPL-3.0-only"
LABEL org.opencontainers.image.title="python Offline Course Resouce"
LABEL org.opencontainers.image.description="This image is the python specific image that can be used to act as an offline resource for students to contain all the instructional matrial and tools needed to do the course content"
LABEL org.opencontainers.image.base.name="registry-1.docker.io/scioer/base-resource:sha-40bb95e"
USER root
RUN PY_VERSION=$(python3 --version | cut -d' ' -f 2) \
&& curl -L https://docs.python.org/ftp/python/doc/$PY_VERSION/python-$PY_VERSION-docs-html.zip --output pydocs.zip \
&& unzip pydocs -d /opt/static/ \
&& rm pydocs.zip
# install jupyter dependancies
RUN ln -s /usr/bin/python3 /usr/bin/python
USER ${UNAME}
# these three labels will change every time the container is built
# put them at the end because of layer caching
ARG VERSION=v1.0.0
LABEL org.opencontainers.image.version="$VERSION"
ARG VCS_REF
LABEL org.opencontainers.image.revision="${VCS_REF}"
ARG BUILD_DATE
LABEL org.opencontainers.image.created="${BUILD_DATE}"