Skip to content

Commit

Permalink
feat: add dockerfile for local build
Browse files Browse the repository at this point in the history
  • Loading branch information
tushar-saxena-yral committed Dec 9, 2024
1 parent 394fb80 commit f875182
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 6 deletions.
6 changes: 0 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,6 @@ RUN apt-get update \

EXPOSE 50051

ENV GOOGLE_SA_KEY=test
ENV YRAL_METADATA_TOKEN="test_token"
ENV QSTASH_CURRENT_SIGNING_KEY="test_key"
ENV QSTASH_AUTH_TOKEN="test_token"


# Latest releases available at https://github.com/aptible/supercronic/releases
# ENV SUPERCRONIC_URL=https://github.com/aptible/supercronic/releases/download/v0.2.29/supercronic-linux-amd64 \
# SUPERCRONIC=supercronic-linux-amd64 \
Expand Down
33 changes: 33 additions & 0 deletions Dockerfile-local
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
FROM debian:bookworm-20240211

WORKDIR /app

RUN apt-get update \
&& apt-get install -y ca-certificates \
&& apt-get -y install curl \
&& apt-get -y install ffmpeg

EXPOSE 50051

ENV GOOGLE_SA_KEY=test
ENV YRAL_METADATA_TOKEN="test_token"
ENV QSTASH_CURRENT_SIGNING_KEY="test_key"
ENV QSTASH_AUTH_TOKEN="test_token"


# Latest releases available at https://github.com/aptible/supercronic/releases
# ENV SUPERCRONIC_URL=https://github.com/aptible/supercronic/releases/download/v0.2.29/supercronic-linux-amd64 \
# SUPERCRONIC=supercronic-linux-amd64 \
# SUPERCRONIC_SHA1SUM=cd48d45c4b10f3f0bfdd3a57d054cd05ac96812b

# RUN curl -fsSLO "$SUPERCRONIC_URL" \
# && echo "${SUPERCRONIC_SHA1SUM} ${SUPERCRONIC}" | sha1sum -c - \
# && chmod +x "$SUPERCRONIC" \
# && mv "$SUPERCRONIC" "/usr/local/bin/${SUPERCRONIC}" \
# && ln -s "/usr/local/bin/${SUPERCRONIC}" /usr/local/bin/supercronic

# # You might need to change this depending on where your crontab is located
# COPY crontab crontab

COPY ./target/x86_64-unknown-linux-musl/release/icp-off-chain-agent .
CMD ["./icp-off-chain-agent"]

0 comments on commit f875182

Please sign in to comment.