-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
32 lines (23 loc) · 864 Bytes
/
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
# build image from dockerfile:
# docker build -t kedro-geospatial:1.0 .
# use the latest gdal image as base image
ARG BASE_IMAGE=osgeo/gdal:ubuntu-small-latest
FROM $BASE_IMAGE as runtime-environment
# install pip
RUN apt-get update && apt-get -y install python3-pip --fix-missing
# install project requirements in to the /tmp dir of the docker image
COPY src/requirements.txt /tmp/requirements.txt
RUN pip install --no-cache -r /tmp/requirements.txt && rm -f /tmp/requirements.txt
# Set the locale
ENV LC_ALL=nb_NO.UTF-8
ENV LANG=nb_NO.UTF-8
# set workdir to vs code workspace
WORKDIR /workspaces/kedro-geospatial
#
FROM runtime-environment
# copy the whole project except what is in .dockerignore
# ensure that /data is not copied into the image
# mount /data as volume (see devcontainer.json for mount config)
COPY . .
EXPOSE 8888
CMD ["kedro", "run"]