File tree 4 files changed +6
-12
lines changed
4 files changed +6
-12
lines changed Original file line number Diff line number Diff line change 1
- FROM ubuntu:18.04
2
- RUN apt-get update && apt-get install -y python && apt-get install -y wget && wget https://bootstrap.pypa.io/get-pip.py && python get-pip.py
1
+ FROM python:2.7.16-alpine3.9
3
2
RUN pip install awscli --upgrade
4
3
COPY create-dynamodb-tables.sh .
5
4
COPY ftgo-order-history.json .
6
5
COPY wait-for-dynamodblocal.sh .
6
+ RUN chmod +x *.sh
7
7
CMD ./wait-for-dynamodblocal.sh && ./create-dynamodb-tables.sh
Original file line number Diff line number Diff line change 1
- #! /bin/bash -e
1
+ #! /bin/sh -e
2
2
3
3
echo Initializing DynamoDB at endpoint ${AWS_DYNAMODB_ENDPOINT_URL}
4
4
Original file line number Diff line number Diff line change 1
- #! /bin/bash
1
+ #! /bin/sh
2
2
3
3
done=false
4
4
Original file line number Diff line number Diff line change 1
- FROM openjdk:7-jre
2
-
3
- # Default port for DynamoDB Local
4
- EXPOSE 8000
5
- RUN mkdir /var/dynamodb_local && (wget -q -O - https://s3-us-west-2.amazonaws.com/dynamodb-local/dynamodb_local_latest.tar.gz | tar -xzf - )
6
-
7
- # Default command for image
8
- CMD /usr/bin/java ${JAVA_OPTS} -Djava.library.path=. -jar DynamoDBLocal.jar -dbPath /var/dynamodb_local -sharedDb -port 8000
1
+ FROM amazon/dynamodb-local:1.11.477
2
+ ENTRYPOINT java -jar DynamoDBLocal.jar -inMemory -sharedDb -port 8000
You can’t perform that action at this time.
0 commit comments