-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDockerfile
38 lines (30 loc) · 1.13 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
# Use the official Python 3.9 image from the Docker Hub
FROM python:3.9
# Set the default shell to bash and the working directory in the container
SHELL ["/bin/bash", "-c"]
WORKDIR /hdp-cairo
# Install system dependencies
RUN apt-get update && apt-get install -y \
build-essential \
curl \
git \
&& rm -rf /var/lib/apt/lists/*
# Install Rust using rustup
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
ENV PATH="/root/.cargo/bin:${PATH}"
# Copy the project files into the container
COPY packages/cairo-lang-0.13.1.zip packages/cairo-lang-0.13.1.zip
# Set up Python virtual environment and install dependencies
RUN python -m venv venv && \
source venv/bin/activate && \
pip install --upgrade pip && \
pip install packages/cairo-lang-0.13.1.zip
# Activate the virtual environment for subsequent RUN commands
ENV VIRTUAL_ENV=/hdp-cairo/venv
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
# Copy the project files into the container
COPY . .
# # Install specific Rust binaries
RUN cargo install --path ./crates/dry_run
RUN cargo install --path ./crates/fetcher
RUN cargo install --path ./crates/sound_run