-
Notifications
You must be signed in to change notification settings - Fork 28
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (24 loc) · 845 Bytes
/
Dockerfile
File metadata and controls
28 lines (24 loc) · 845 Bytes
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
FROM ubuntu:latest
RUN apt-get update \
&& apt-get install --no-install-recommends -y \
ca-certificates \
curl \
gnupg \
python3 \
python3-pip \
&& curl -fsSL https://packages.cloud.google.com/apt/doc/apt-key.gpg \
| gpg --dearmor -o /usr/share/keyrings/cloud.google.gpg \
&& echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.cloud.google.com/apt cloud-sdk main" \
> /etc/apt/sources.list.d/google-cloud-sdk.list \
&& apt-get update \
&& apt-get install --no-install-recommends -y google-cloud-cli \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /opt/gcpwn
COPY . .
ARG GCPWN_EXTRAS=""
RUN if [ -n "$GCPWN_EXTRAS" ]; then \
python3 -m pip install ".[${GCPWN_EXTRAS}]"; \
else \
python3 -m pip install .; \
fi
ENTRYPOINT ["gcpwn"]