16 lines
371 B
Docker
16 lines
371 B
Docker
FROM docker.io/tensorflow/tensorflow:2.10.0
|
|
|
|
COPY requirements.txt .
|
|
RUN pip3 install --upgrade pip==22.2.2 && pip3 list && pip3 install -r requirements.txt \
|
|
&& pip3 list
|
|
|
|
WORKDIR /root
|
|
|
|
# copy the training script inside the container
|
|
COPY src/tf_container/train.py /opt/ml/code/train.py
|
|
|
|
# define train.py as the script entry point
|
|
ENV SAGEMAKER_PROGRAM train.py
|
|
|
|
|