Skip to content

Commit

Permalink
fix(keri-ballot-verifier): fixed docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
rcmorano committed Aug 6, 2024
1 parent 96af56f commit 68126c0
Showing 1 changed file with 6 additions and 18 deletions.
24 changes: 6 additions & 18 deletions backend-services/keri-ballot-verifier/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,33 +1,21 @@
# Builder stage
FROM python:3.12 AS builder
FROM python:3.12-slim

WORKDIR /src

RUN curl https://sh.rustup.rs -sSf | sh -s -- -y
ENV PATH="/root/.cargo/bin:${PATH}"

COPY requirements.txt setup.py .
RUN mkdir src
COPY . /src
RUN pip3 install -r requirements.txt

# Runtime stage
FROM python:3.12-slim AS base

WORKDIR /src

RUN apt update -qq && \
apt install -y libsodium23 && \
apt clean

COPY --from=builder /usr/local /usr/local

COPY . .

ENV CONFIG_DIR /usr/local/var/keri
WORKDIR $CONFIG_DIR
RUN ln -s /src/scripts/start_verifier.sh /usr/local/bin/ballot-verifier
ENV VERIFIER_CONFIG_DIR /usr/local/var/keri
WORKDIR $VERIFIER_CONFIG_DIR

RUN chmod +x /usr/local/bin/ballot-verifier
RUN ln -s /src/scripts/start_verifier.sh /usr/local/bin/ballot-verifier && \
chmod +x /usr/local/bin/ballot-verifier

FROM base AS ballot-verifier
ENTRYPOINT ["/usr/local/bin/ballot-verifier"]

0 comments on commit 68126c0

Please sign in to comment.