-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathDockerfile
45 lines (37 loc) · 1.15 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
FROM alpine:3.21.3
LABEL name="aws-cdk-action"
LABEL repository="https://github.com/ScottBrenner/aws-cdk-action"
LABEL homepage="https://github.com/ScottBrenner/aws-cdk-action"
LABEL org.opencontainers.image.source="https://github.com/ScottBrenner/aws-cdk-action"
LABEL "com.github.actions.name"="aws-cdk-action"
LABEL "com.github.actions.description"="GitHub Action for AWS CDK"
LABEL "com.github.actions.icon"="box"
LABEL "com.github.actions.color"="yellow"
LABEL "maintainer"="Scott Brenner <[email protected]>"
# Install dependencies
RUN apk --no-cache add \
nodejs \
npm \
python3 \
py3-pip \
git \
make \
musl-dev \
go \
bash \
docker
# Install AWS CDK and Python CDK library
RUN npm install -g aws-cdk
RUN pip3 install aws-cdk-lib --break-system-packages
# Configure Go environment
ENV GOROOT /usr/lib/go
ENV GOPATH /go
ENV PATH /go/bin:$PATH
# Create necessary directories for Go
RUN mkdir -p ${GOPATH}/src ${GOPATH}/bin
# Copy entrypoint script and set execute permissions
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
# Set entrypoint and default command
ENTRYPOINT ["/entrypoint.sh"]
CMD ["--help"]