diff options
Diffstat (limited to 'devtools/config/docker-compose.yaml')
| -rw-r--r-- | devtools/config/docker-compose.yaml | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/devtools/config/docker-compose.yaml b/devtools/config/docker-compose.yaml index 6372fe4c..ce7ac5d2 100644 --- a/devtools/config/docker-compose.yaml +++ b/devtools/config/docker-compose.yaml @@ -1,3 +1,7 @@ +# Copyright 2020 The Go Authors. All rights reserved. +# Use of this source code is governed by a BSD-style +# license that can be found in the LICENSE file. + version: '3' services: npm: @@ -6,8 +10,9 @@ services: dockerfile: devtools/config/Dockerfile.npm image: pkgsite_npm init: true - ports: - - '5000:5000' volumes: - ../..:/pkgsite - - /pkgsite/node_modules + # Mounts empty volumes in place of git directories so they can't + # be written to during npm package installs. + - /pkgsite/.git + - /pkgsite/private/.git |
