sgt1796 / GPT_embedding

0 stars 1 forks source link

added dockerfile to spawn dev enviroment #11

Closed ronaldlindev closed 2 months ago

ronaldlindev commented 2 months ago

docker build . --buildarg device=cpu -t stoneye/dev:0

Change cpu to gpu if you are on a gpu enabled device.

docker run -v path/to/GPT_embedding:/GPT_embedding -it stoneye/dev:0

This should activate a environment where you can run local python files:

python main.py

Since this mounts a local drive to the container, the .env file should also be brought into the container.