Skip to content

Commit

Permalink
disable env
Browse files Browse the repository at this point in the history
  • Loading branch information
aryanbhosale authored Nov 12, 2024
1 parent 2916fb8 commit b548079
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,24 @@
# Use an official Python runtime as a parent image
FROM python:3.11
FROM python:3.11-slim

# Install necessary build tools and curl
RUN apt-get update && apt-get install -y build-essential curl
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
curl \
gcc \
libzstd-dev \
&& rm -rf /var/lib/apt/lists/*

# Install Rust using rustup
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y

# Add Rust to PATH
ENV PATH="/root/.cargo/bin:${PATH}"

# Set environment variables to disable SSE2 and AVX2 for numcodecs
ENV BLOSC_DISABLE_AVX2=1
ENV BLOSC_DISABLE_SSE2=1

# Set the working directory in the container
WORKDIR /app

Expand Down

0 comments on commit b548079

Please sign in to comment.