| # 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: |
| build: |
| context: ../../ |
| dockerfile: devtools/config/Dockerfile.npm |
| environment: |
| FRONTEND_URL: http://host.docker.internal:8080 |
| image: pkgsite_npm |
| init: true |
| volumes: |
| - ../..:/pkgsite |
| # Mounts empty volumes in place of git directories so they can't |
| # be written to during npm package installs. |
| - /pkgsite/.git |
| - /pkgsite/private/.git |