-
Notifications
You must be signed in to change notification settings - Fork 38
/
Dockerfile
60 lines (46 loc) · 1.51 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
##
## Copyright 2023 Ocean Protocol Foundation
## SPDX-License-Identifier: Apache-2.0
##
FROM python:3.8-slim-buster
LABEL maintainer="Ocean Protocol <[email protected]>"
ARG VERSION
RUN apt-get update && \
apt-get install --no-install-recommends -y \
build-essential \
gcc \
gettext-base && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
COPY . /ocean-provider
WORKDIR /ocean-provider
# Install dependencies in a virtual environment
RUN python3.8 -m pip install --no-cache-dir setuptools wheel && \
python3.8 -m pip install --no-cache-dir .
ENV NETWORK_URL='http://127.0.0.1:8545'
ENV PROVIDER_PRIVATE_KEY=''
ENV PROVIDER_ADDRESS=''
ENV AZURE_ACCOUNT_NAME=''
ENV AZURE_ACCOUNT_KEY=''
ENV AZURE_RESOURCE_GROUP=''
ENV AZURE_LOCATION=''
ENV AZURE_CLIENT_ID=''
ENV AZURE_CLIENT_SECRET=''
ENV AZURE_TENANT_ID=''
ENV AZURE_SUBSCRIPTION_ID=''
# do checksums only if file size < 5 Mb
ENV MAX_CHECKSUM_LENGTH='5242880'
# Note: AZURE_SHARE_INPUT and AZURE_SHARE_OUTPUT are only used
# for Azure Compute data assets (not for Azure Storage data assets).
# If you're not supporting Azure Compute, just leave their values
# as 'compute' and 'output', respectively.
ENV AZURE_SHARE_INPUT='compute'
ENV AZURE_SHARE_OUTPUT='output'
ENV OCEAN_PROVIDER_URL='http://0.0.0.0:8030'
ENV OCEAN_PROVIDER_WORKERS='1'
ENV OCEAN_PROVIDER_TIMEOUT='9000'
ENV ALLOW_NON_PUBLIC_IP=False
ENV ARWEAVE_GATEWAY=https://arweave.net/
ENV IPFS_GATEWAY=https://ipfs.io
ENTRYPOINT ["/ocean-provider/docker-entrypoint.sh"]
EXPOSE 8030