23 lines
599 B
YAML
23 lines
599 B
YAML
services:
|
|
prod:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
image: htk-prod-builder:local
|
|
network_mode: host
|
|
working_dir: /source
|
|
environment:
|
|
- PUPPETEER_SKIP_DOWNLOAD=true
|
|
- PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
|
|
volumes:
|
|
# The whole repo (with submodules already checked out by the CI step):
|
|
- ../../:/source
|
|
# Persist package caches between runs to speed up rebuilds:
|
|
- htk-npm-cache:/root/.npm
|
|
- htk-bun-cache:/root/.bun/install/cache
|
|
command: bash .build/prod/build.sh
|
|
|
|
volumes:
|
|
htk-npm-cache:
|
|
htk-bun-cache:
|