SDGym icon indicating copy to clipboard operation
SDGym copied to clipboard

Dockerfile error

Open limhasic opened this issue 1 year ago • 1 comments

Check spacing: Check the spacing and escape characters in the next line of the COPY command. Errors may occur if the location of spaces and the use of escape characters in lines connected with && \ are incorrect.

dockerfile Copy code RUN mkdir /SDGym &&
mkdir /SDGym/sdgym &&
# ...

have to be

FROM nvidia/cuda:11.8.0-devel-ubuntu22.04 CMD nvidia-smi

RUN apt-get update && apt-get install -y build-essential curl python3.9 python3-pip
python3-distutils && ln -s /usr/bin/python3.9 /usr/bin/python

RUN mkdir /SDGym RUN mkdir /SDGym/sdgym

Copy code

COPY setup.py README.md HISTORY.md MANIFEST.in LICENSE Makefile setup.cfg /SDGym/ COPY /sdgym/ /SDGym/sdgym

WORKDIR /SDGym

Install project

RUN pip install . --no-binary pomegranate RUN make compile ENV TF_CPP_MIN_LOG_LEVEL 2

CMD ["echo", "Usage: docker run -ti sdvproject/sdgym sdgym COMMAND OPTIONS"]

limhasic avatar Nov 30 '23 01:11 limhasic