Last active
January 25, 2017 10:16
-
-
Save sudix/403ee828ad7ca24e334d953c510dbc9f to your computer and use it in GitHub Desktop.
Dockerfile for dynamo-local
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM frolvlad/alpine-oraclejdk8 | |
# Create working space | |
# RUN mkdir /var/dynamodb_wd | |
WORKDIR /var/dynamodb_wd | |
# Default port for DynamoDB Local | |
EXPOSE 8000 | |
# Get the package from Amazon | |
RUN wget -O /var/dynamodb_wd/dynamodb_local_latest http://dynamodb-local.s3-website-us-west-2.amazonaws.com/dynamodb_local_latest | |
RUN tar xfz /var/dynamodb_wd/dynamodb_local_latest | |
# Default command for image | |
ENTRYPOINT ["/usr/bin/java", "-Djava.library.path=.", "-jar", "DynamoDBLocal.jar", "-dbPath", "/var/dynamodb_local"] | |
CMD ["-port", "8000"] | |
# Add VOLUMEs to allow backup of config, logs and databases | |
VOLUME ["/var/dynamodb_local", "/var/dynamodb_wd"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment