Skip to content

Commit f0b01a4

Browse files
committed
Fix Dockerfile
Update Java version in base image to 21 Copy buildozer and buildifier to /usr/bin instead of /usr/local/bin. This regression has been introduced in 0110166. Change-Id: Ibb27e169f50bfbf8c6fbe74ac15d0c9095a535ea
1 parent d0278a3 commit f0b01a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@ COPY . .
3535
RUN bazel build //java/com/google/copybara:copybara_deploy.jar --java_language_version=21 --tool_java_language_version=21 --java_runtime_version=remotejdk_21
3636

3737
# Use jammy to drop Python 2
38-
FROM docker.io/eclipse-temurin:17-jre-jammy
38+
FROM docker.io/eclipse-temurin:21-jre-jammy
3939

4040
RUN apt-get update && \
4141
apt-get install --no-install-recommends -y git mercurial quilt && \
4242
rm -rf /var/lib/apt/lists/*
4343

44-
COPY --from=buildtools /go/bin/buildozer /go/bin/buildifier /usr/local/bin/
44+
COPY --from=buildtools /go/bin/buildozer /go/bin/buildifier /usr/bin/
4545
COPY --from=build /home/ubuntu/bazel-bin/java/com/google/copybara/copybara_deploy.jar /opt/copybara/copybara_deploy.jar
4646
COPY .docker/copybara /usr/local/bin/copybara
4747

0 commit comments

Comments
 (0)