Skip to content

Commit ac3fb24

Browse files
committed
fix: allow Docker image to be built locally
Fix building the docker image locally. Addresses #846 Signed-off-by: Flavio Castelli <fcastelli@suse.com>
1 parent 078ab8b commit ac3fb24

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

Dockerfile

+2-7
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
1-
FROM rust:1.78 AS build
1+
FROM rust:1.80-alpine AS build
22
WORKDIR /usr/src
33

4-
# Download the target for static linking.
5-
RUN rustup target add $(arch)-unknown-linux-musl
6-
7-
# Fix ring building using musl - see https://github.com/briansmith/ring/issues/1414#issuecomment-1055177218
8-
RUN apt-get update && apt-get install musl-tools clang llvm -y
9-
ENV CC="clang"
4+
RUN apk add --no-cache musl-dev make
105

116
RUN mkdir /usr/src/policy-server
127
WORKDIR /usr/src/policy-server

0 commit comments

Comments
 (0)