feat: add Dockerfile for local run
This commit is contained in:
parent
fc1945cecd
commit
5b16e3aa76
15
Dockerfile
Normal file
15
Dockerfile
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
FROM docker.io/tensorflow/tensorflow:2.6.0
|
||||||
|
|
||||||
|
COPY requirements.txt .
|
||||||
|
RUN pip3 install --upgrade pip==20.0.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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user