From dddb460a1d8cc29b10bab63f170335cf142f8c89 Mon Sep 17 00:00:00 2001 From: PabloLION <36828324+PabloLION@users.noreply.github.com> Date: Wed, 29 May 2024 02:21:44 +0200 Subject: [PATCH] fix: dockerfile with debian image won't run --- Dockerfile | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index bd0cf0b..8f6b8e7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,17 @@ -FROM python:3.10 +FROM python:3.10-alpine COPY . /claim WORKDIR /claim -RUN apt update && apt install age && apt clean +# Install necessary packages using apk; handle any build dependencies +RUN apk update && \ + apk add --no-cache curl && \ + apk add --no-cache libressl-dev musl-dev gcc libffi-dev && \ + apk add --no-cache py3-pip && \ + apk add --no-cache --virtual .build-deps gcc musl-dev libffi-dev +# Assuming 'age' refers to a tool or library, you need to find the equivalent in Alpine or build from source +# If 'age' is a Python package, install it using pip RUN curl -o metadata.json https://fluence-dao.s3.eu-west-1.amazonaws.com/metadata.json RUN pip install -r python/requirements.txt +# Cleanup build dependencies +RUN apk del .build-deps -ENTRYPOINT ["python", "python/proof.py"] +ENTRYPOINT ["python", "python/proof.py"] \ No newline at end of file