forked from data-prep-kit/data-prep-kit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
30 lines (23 loc) · 852 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
FROM docker.io/rayproject/ray:2.9.3-py310
# install pytest
RUN pip install --no-cache-dir pytest
# Copy in the data processing framework source/project and install it
# This is expected to be placed in the docker context before this is run (see the make image).
COPY --chown=ray:users data-processing-lib/ data-processing-lib/
# install data processing
RUN cd data-processing-lib && pip install --no-cache-dir -e .
COPY requirements.txt requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
# copy source data
COPY ./src/noop_transform.py .
COPY ./src/noop_local_ray.py local/
# copy test
COPY test/ test/
COPY test-data/ test-data/
# Set environment
ENV PYTHONPATH /home/ray
# Put these at the end since they seem to upset the docker cache.
ARG BUILD_DATE
ARG GIT_COMMIT
LABEL build-date=$BUILD_DATE
LABEL git-commit=$GIT_COMMIT