Skip to content

Commit

Permalink
bad
Browse files Browse the repository at this point in the history
  • Loading branch information
arpanetus committed Oct 9, 2023
1 parent cdf947f commit f5f06de
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ const (
imageTag = "hf-torch:latest"
guestRootPath = "/srv/"
guestCachePath = "/home/nonroot/.cache/"
guestRootCachePath = "/root/.cache/"
)

func NewDockerRun(
Expand Down Expand Up @@ -166,6 +167,7 @@ func (d *DockerRun) Run(
Binds: []string{
fmt.Sprintf("%s:%s", d.hostRootPath, d.guestRootPath),
fmt.Sprintf("%s:%s", d.hostCachePath, d.guestCachePath),
fmt.Sprintf("%s:%s", d.hostCachePath, guestRootCachePath),
},
IpcMode: container.IPCModeHost,
PidMode: container.PidMode("host"),
Expand Down

0 comments on commit f5f06de

Please sign in to comment.