Skip to content

Commit

Permalink
Update Makefile
Browse files Browse the repository at this point in the history
You should retain the .venv folder when developping in the container
  • Loading branch information
AmineDjeghri authored Oct 28, 2024
1 parent 9001d92 commit a52176f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ build-docker:

# Build the Docker image and jump into the container to test a fresh environment (CPU)
dev-container-cpu: build-docker
docker run $(DOCKER_RUN_FLAGS) -v $(PROJECT_ROOT):/app -it lightning-base:latest /bin/bash
docker run $(DOCKER_RUN_FLAGS) -v $(PROJECT_ROOT):/app -v /app/.venv -it lightning-base:latest /bin/bash

# Build the Docker image and jump into the container to test a fresh environment (GPU)
dev-container-gpu: build-docker
docker run $(DOCKER_RUN_FLAGS_GPU) -v $(PROJECT_ROOT):/app -it lightning-base:latest /bin/bash
docker run $(DOCKER_RUN_FLAGS_GPU) -v $(PROJECT_ROOT):/app -v /app/.venv -it lightning-base:latest /bin/bash

# Run the train script using the Docker image
train-docker: docker-build
Expand Down

0 comments on commit a52176f

Please sign in to comment.