fix startup for dynamodb

This commit is contained in:
Greyscale 2024-04-19 12:57:40 +02:00
parent 8e22597f19
commit 891c818d2e
No known key found for this signature in database
GPG key ID: 74BAFF55434DA4B2
2 changed files with 2 additions and 1 deletions

View file

@ -1,4 +1,4 @@
FROM amazon/dynamodb-local
HEALTHCHECK --interval=5s --timeout=3s --start-period=0s --retries=5 \
CMD curl --silent --output /dev/null http://localhost:8000/shell/
CMD ["-jar", "DynamoDBLocal.jar", "-sharedDb", "-dbPath", "/tmp"]
CMD ["-jar", "/home/dynamodblocal/DynamoDBLocal.jar", "-inMemory"]

View file

@ -2,3 +2,4 @@ version: "3.7"
services:
dynamodb:
build: .
image: ghcr.io/benzine-framework/dynamodb:local