Skip to content

Commit a07aa78

Browse files
committed
goimports needs a whole install available
1 parent 5d7f9e7 commit a07aa78

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
@@ -46,7 +46,7 @@ RUN cargo build --release
4646
FROM docker.io/ubuntu:noble
4747

4848
ENV DEBIAN_FRONTEND=noninteractive
49-
ENV PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/root/.cargo/bin/:/root/.dotnet/tools"
49+
ENV PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/root/.cargo/bin/:/root/.dotnet/tools:/usr/local/go/bin"
5050

5151
RUN apt-get update && \
5252
apt-get install -y --no-install-recommends curl default-jre-headless dotnet8 && \
@@ -92,7 +92,7 @@ RUN echo "5e7eb28a0b2006d1cefbc9213bfc73a8191ec2f85d639ec4fc4ec0cd04212e82 ktfmt
9292

9393
# Go
9494
COPY --from=goimports-builder /go/bin/goimports /usr/bin
95-
COPY --from=goimports-builder /usr/local/go/bin/gofmt /usr/bin
95+
COPY --from=goimports-builder /usr/local/go/ /usr/local/go/
9696

9797
# openapi-codegen
9898
COPY --from=openapi-codegen-builder /app/target/release/openapi-codegen /usr/bin/

0 commit comments

Comments
 (0)