Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Docker file for custom DynamoDB instance
#BASE IMAGE
FROM anapsix/alpine-java
#ADD REQUIRED PACKAGES
RUN apk add --update ca-certificates wget openssl
#SETTING DIRECTORY
WORKDIR dynamo
#DOWNLOADING DYNAMO AND SETTING UP
RUN wget http://dynamodb-local.s3-website-us-west-2.amazonaws.com/dynamodb_local_latest.tar.gz && tar -xzf dynamodb_local_latest.tar.gz && rm -f dynamodb_local_latest.tar.gz*
#COPYING DB FILE
COPY shared-local-instance.db /dynamo
#SETTING UP ENTRYPOINT RUNNING THE DYNAMO
ENTRYPOINT java -Djava.library.path=DynamoDBLocal_lib -jar DynamoDBLocal.jar -optimizeDbBeforeStartup -dbPath ./ -sharedDb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.