-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
45 lines (28 loc) · 1.31 KB
/
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# docker build --no-cache -t awspilotdev/dynamodb-ui .
# docker run -it -p 10000:80 awspilotdev/dynamodb-ui
FROM amazonlinux:2
RUN yum install -y java
RUN curl --silent --location https://rpm.nodesource.com/setup_12.x | bash -
RUN yum install -y nodejs wget tar gzip
RUN yum install -y net-tools
RUN wget -O /tmp/dynamodb_local_latest https://s3-us-west-2.amazonaws.com/dynamodb-local/dynamodb_local_latest.tar.gz
RUN tar xfz /tmp/dynamodb_local_latest
RUN rm -f /tmp/dynamodb_local_latest
ADD docker/index.js /awsmock/index.js
ADD docker/ui.js /awsmock/ui.js
ADD docker/start.sh /awsmock/start.sh
RUN chmod +x /awsmock/start.sh
ADD docker/package.json /awsmock/package.json
#ADD docker/htdocs /awsmock/htdocs
ADD demo/index.html /awsmock/htdocs/index.html
ADD demo/dynamodb/index.html /awsmock/htdocs/dynamodb/index.html
ADD demo/cloudformation/index.html /awsmock/htdocs/cloudformation/index.html
ADD demo/s3/index.html /awsmock/htdocs/s3/index.html
ADD demo/js /awsmock/htdocs/js
ADD demo/img /awsmock/htdocs/img
ADD dist/ /awsmock/htdocs/dist
RUN cd /awsmock && npm install
RUN mkdir /storage
RUN mkdir /storage/dynamodb
RUN mkdir /storage/s3
CMD ["sh", "/awsmock/start.sh"]