Skip to content

Commit 8062225

Browse files
joshuagrishamJoshua-Grisham_SSCSpace
andauthored
Use aws-cli instead of amazonlinux to speed up container build time (#128)
* Change Dockerfile source image to aws-cli * Set WORKDIR back to default value --------- Co-authored-by: Joshua-Grisham_SSCSpace <joshua.grisham@sscspace.com>
1 parent b8917ac commit 8062225

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

Dockerfile

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
1-
FROM public.ecr.aws/amazonlinux/amazonlinux:latest
2-
3-
RUN dnf install python3 aws-cli -y
1+
FROM public.ecr.aws/aws-cli/aws-cli:latest
42

5-
COPY ./entrypoint .
3+
WORKDIR /
4+
COPY ./entrypoint .
65
RUN chmod 0500 /main.py
76

87
ENTRYPOINT ["/main.py"]
9-
10-
# note: don't set a WORKDIR in this image, it conflicts with github actions:
11-
# https://docs.github.com/en/actions/creating-actions/dockerfile-support-for-github-actions#workdir

0 commit comments

Comments
 (0)