Skip to content

Commit 4da3e46

Browse files
committed
move env; remove obsolete code
1 parent 234ae23 commit 4da3e46

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

.generator/Dockerfile

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@
1616
# This stage installs all build dependencies and compiles all Python versions.
1717
FROM marketplace.gcr.io/google/ubuntu2404 AS builder
1818

19-
# Tell synthtool to pull templates from this docker image instead of from
20-
# the live repo.
21-
ENV SYNTHTOOL_TEMPLATES="/synthtool/synthtool/gcp/templates"
22-
2319
RUN apt-get update && \
2420
apt-get install -y --no-install-recommends \
2521
# Essential for compiling C code
@@ -82,6 +78,10 @@ RUN git clone --depth 1 https://github.com/googleapis/synthtool.git synthtool
8278
# necessary artifacts from the builder stage.
8379
FROM marketplace.gcr.io/google/ubuntu2404
8480

81+
# Tell synthtool to pull templates from this docker image instead of from
82+
# the live repo.
83+
ENV SYNTHTOOL_TEMPLATES="/synthtool/synthtool/gcp/templates"
84+
8585
# Install only the essential runtime libraries for Python.
8686
# These are the non "-dev" versions of the libraries used in the builder.
8787
RUN apt-get update && \
@@ -130,7 +130,4 @@ RUN chmod a+rx ./cli.py
130130
COPY .generator/parse_googleapis_content.py .
131131
RUN chmod a+rx ./parse_googleapis_content.py
132132

133-
RUN mkdir -p /.cache/synthtool/synthtool
134-
RUN find /.cache -type d -exec chmod a+x {} \;
135-
136133
ENTRYPOINT ["python3.9", "./cli.py"]

0 commit comments

Comments
 (0)