forked from aave-starknet-project/aave-starknet-bridge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
31 lines (23 loc) · 844 Bytes
/
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
FROM python:3.7.12
ENV HOSTNAME_L1 testnet-l1
ENV HOSTNAME_L2 testnet-l2
RUN apt update -y && apt upgrade -y && apt install curl git libssl-dev libgmp3-dev -y
# Copy folder
COPY . aave-starknet-bridge
WORKDIR aave-starknet-bridge
# Install Python dependencies
RUN rm -rf .venv && python -m venv .venv
RUN . .venv/bin/activate
RUN python -m pip install --upgrade pip && pip install poetry && poetry install
# Install Node 16
RUN curl -sL https://deb.nodesource.com/setup_16.x | bash - && \
apt-get install -y nodejs
# Install Yarn
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \
echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list && \
apt update -y && \
apt install yarn -y
# Install Node dependencies
RUN yarn
# Build Cairo files
RUN yarn compile:l2