Skip to content
This repository was archived by the owner on Sep 4, 2024. It is now read-only.

Commit

Permalink
add pip, and example of consuming with requirements (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmikey authored Dec 27, 2023
1 parent e37fd5f commit f3d4036
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ WORKDIR /app

## curl, unzip other utilities
RUN apt-get update && \
apt-get install --no-install-recommends --assume-yes curl unzip pv ca-certificates gnupg2 python3
apt-get install --no-install-recommends --assume-yes curl unzip pv ca-certificates gnupg2 python3 python3-pip

# gomplete for updating config with env vars
RUN curl -o ./gomplate -sSL https://github.com/hairyhenderson/gomplate/releases/download/v3.10.0/gomplate_linux-amd64
Expand All @@ -15,6 +15,7 @@ RUN chmod 755 gomplate
# get the runtime
RUN curl -o ./runtime.tar.gz -sSL https://github.com/blocklessnetwork/runtime/releases/download/v0.3.1/blockless-runtime.ubuntu-20.04.x86_64.tar.gz
RUN mkdir /app/runtime && tar -xvkf ./runtime.tar.gz -C /app/runtime
RUN python3 -m pip install --upgrade pip

# get the upshot-extension
RUN curl -L -s -H "Authorization: token ${ghcr_token}" -H 'Accept:application/octet-stream' "https://api.github.com/repos/upshot-tech/upshot-blockless-extension/releases/assets/142012669" -o upshot-extension.tar.gz
Expand Down
5 changes: 5 additions & 0 deletions docker/Dockerfile.Operator
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# syntax = devthefuture/dockerfile-x
FROM ./docker/Dockerfile
COPY ./docker/requirements.txt /tmp/
RUN pip install --requirement /tmp/requirements.txt
COPY . /tmp/

0 comments on commit f3d4036

Please sign in to comment.