-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (20 loc) · 763 Bytes
/
Dockerfile
File metadata and controls
27 lines (20 loc) · 763 Bytes
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
FROM quay.io/natlibfi/annif:1.4
# Docker image to use in Annif tutorial, https://github.com/NatLibFi/Annif-tutorial.
# Build and push with:
# docker build --push -t quay.io/natlibfi/annif:1.4-tutorial -t quay.io/natlibfi/annif:tutorial .
#
USER root
RUN apt-get update \
&& apt-get upgrade -y \
&& apt-get install -y --no-install-recommends curl nano wget make poppler-utils git
RUN mkdir -p /Annif-tutorial /Annif-tutorial-dvc /home/annif_user \
&& chown -R annif_user:annif_user /Annif-tutorial /home/annif_user \
&& chmod a+w /Annif-tutorial-dvc
WORKDIR /Annif
RUN poetry config virtualenvs.create false
RUN poetry add jupyter dvc --no-cache
USER annif_user
ENV JUPYTER_DATA_DIR=/tmp
ENV JUPYTER_CONFIG_DIR=/tmp
WORKDIR /Annif-tutorial
CMD bash