Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dockerfile update #136

Merged
merged 1 commit into from
Jan 26, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,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
20 changes: 0 additions & 20 deletions environment.dockerfile

This file was deleted.

Loading