Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: dockerfile with debian image won't run #135

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]