Skip to content

Commit

Permalink
Fix building vdr-proxy docker img
Browse files Browse the repository at this point in the history
Signed-off-by: Patrik Stas <patrik.stas@absa.africa>
  • Loading branch information
Patrik-Stas committed Aug 19, 2023
1 parent d167095 commit 1bb9ca0
Showing 1 changed file with 25 additions and 2 deletions.
27 changes: 25 additions & 2 deletions ci/vdrproxy.dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,28 @@
ARG ALPINE_CORE_IMAGE
FROM ${ALPINE_CORE_IMAGE} AS builder
FROM alpine:3.17.1 AS builder

ARG UID=1000
ARG GID=1000

RUN addgroup -g $GID indy && adduser -u $UID -D -G indy indy

# zeromq-dev depends on libsodium-dev and pkg-config

RUN apk update && apk upgrade && \
apk add --no-cache \
build-base \
curl \
openssl-dev \
zeromq-dev \
cmake

USER indy
WORKDIR /home/indy

ARG RUST_VER="1.65.0"
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain $RUST_VER --default-host x86_64-unknown-linux-musl

ENV PATH="/home/indy/.cargo/bin:$PATH"
ENV RUST_LOG=warning RUSTFLAGS="-C target-feature=-crt-static"

USER root
RUN apk update && apk upgrade && \
Expand Down

0 comments on commit 1bb9ca0

Please sign in to comment.