Skip to content

Commit f7eeaae

Browse files
Add support for libpam in RISC-V cross-compilation
1 parent 1ee176b commit f7eeaae

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

Dockerfile.teleport

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,10 @@ RUN cd web && \
2828
FROM --platform=linux/amd64 golang:1.25 AS go_builder
2929
ARG TELEPORT_VERSION
3030

31-
RUN apt-get update && apt-get install -y \
31+
RUN dpkg --add-architecture riscv64 && \
32+
apt-get update && apt-get install -y \
3233
git gcc-riscv64-linux-gnu libc6-dev-riscv64-cross \
34+
libpam0g-dev:riscv64 \
3335
&& rm -rf /var/lib/apt/lists/*
3436

3537
WORKDIR /teleport
@@ -42,7 +44,7 @@ COPY --from=webassets_builder /teleport/webassets/teleport ./webassets/teleport
4244
# Cross-compile with CGO via riscv64-linux-gnu-gcc (no source patches)
4345
RUN CC=riscv64-linux-gnu-gcc \
4446
CGO_ENABLED=1 GOOS=linux GOARCH=riscv64 \
45-
go build -tags "webassets_embed" -ldflags '-w -s' -trimpath \
47+
go build -tags "webassets_embed pam" -ldflags '-w -s' -trimpath \
4648
-o build/teleport ./tool/teleport && \
4749
CC=riscv64-linux-gnu-gcc \
4850
CGO_ENABLED=1 GOOS=linux GOARCH=riscv64 \

0 commit comments

Comments
 (0)