-
Notifications
You must be signed in to change notification settings - Fork 20
/
Dockerfile
30 lines (18 loc) · 964 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
FROM openjdk:8-jre
MAINTAINER cnadiminti
RUN mkdir /var/dynamodb_local
WORKDIR /var/dynamodb_local
VOLUME ["/dynamodb_local_db"]
ENV DYNAMODB_VERSION=2020-05-19
ENV DYNAMODB_PORT=8000
ENV JAVA_OPTS=
RUN curl -sL -O https://s3-us-west-2.amazonaws.com/dynamodb-local/dynamodb_local_${DYNAMODB_VERSION}.tar.gz && \
curl -sL -O https://s3-us-west-2.amazonaws.com/dynamodb-local/dynamodb_local_${DYNAMODB_VERSION}.tar.gz.sha256 && \
sed -i "s/ .*dynamodb_local_${DYNAMODB_VERSION}.tar.gz/ *dynamodb_local_${DYNAMODB_VERSION}.tar.gz/g" dynamodb_local_${DYNAMODB_VERSION}.tar.gz.sha256 && \
sha256sum -c dynamodb_local_${DYNAMODB_VERSION}.tar.gz.sha256 && \
tar zxvf dynamodb_local_${DYNAMODB_VERSION}.tar.gz && \
rm dynamodb_local_${DYNAMODB_VERSION}.tar.gz dynamodb_local_${DYNAMODB_VERSION}.tar.gz.sha256
COPY ./docker-entrypoint.sh /
ENTRYPOINT ["/docker-entrypoint.sh"]
EXPOSE 8000
CMD ["--sharedDb", "-dbPath", "/dynamodb_local_db"]