-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcompose.yml
More file actions
22 lines (22 loc) · 862 Bytes
/
compose.yml
File metadata and controls
22 lines (22 loc) · 862 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
---
services:
build_deployment_package:
build: .
# This uses the value of the LAMBDA_TAG environment variable from
# the invoking environment but falls back to a default value.
image: cisagov/example_lambda:${LAMBDA_TAG:-latest}
entrypoint: /opt/build_artifact.sh
environment:
# This uses the value of the BUILD_FILE_NAME environment variable
# from the invoking environment but falls back to a default value.
- BUILD_FILE_NAME=${BUILD_FILE_NAME:-lambda_build.zip}
volumes:
- ./build/build_artifact.sh:/opt/build_artifact.sh
- .:/var/task/output
run_lambda_locally:
build: .
# This uses the value of the LAMBDA_TAG environment variable from
# the invoking environment but falls back to a default value.
image: cisagov/example_lambda:${LAMBDA_TAG:-latest}
ports:
- 9000:8080