Skip to content

Commit df68260

Browse files
Bug fix Dockerfile
1 parent 8be274d commit df68260

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

client/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ FROM public.ecr.aws/amazonlinux/amazonlinux:latest
22
RUN yum install -y amazon-linux-extras wget
33
RUN amazon-linux-extras install python3
44
RUN pip3 install pip --upgrade
5-
WORKDIR /home
6-
ADD ./requirements.txt ./
7-
RUN wget -O AmazonRootCA1.pem https://www.amazontrust.com/repository/AmazonRootCA1.pem
8-
RUN pip3 install -r requirements.txt
5+
RUN wget -O /home/AmazonRootCA1.pem https://www.amazontrust.com/repository/AmazonRootCA1.pem
6+
ADD ./requirements.txt /home
7+
RUN pip3 install -r /home/requirements.txt
98
ADD . /home
109
EXPOSE 5000
10+
WORKDIR /home
1111
CMD python3 iot_client.py

0 commit comments

Comments
 (0)