-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
32 lines (24 loc) · 974 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
32
# Use an official Python runtime as a parent image
FROM python:3.11-slim
# Keeps Python from generating .pyc files in the container
ENV PYTHONDONTWRITEBYTECODE=1
# Turns off buffering for easier container logging
ENV PYTHONUNBUFFERED=1
# Install system requirements
# gcc for C compilation
RUN apt-get -qq update && apt-get install -y gcc g++
RUN apt-get -qq update && apt-get install -y git curl
# Get Rust
RUN curl https://sh.rustup.rs -sSf | bash -s -- -y
ENV PATH="${PATH}:/root/.cargo/bin"
# # Set the working directory to /app
WORKDIR /app
# Install any needed packages specified in requirements.txt
RUN pip install -q -U pip setuptools setuptools_rust wheel
COPY requirements.txt /app
RUN pip install -q --no-cache-dir -U -r requirements.txt
# # Copy the current directory contents into the container at /app (except .dockerignore)
COPY . /app
WORKDIR /app/examples
# Run rpc_client.py when the container launches
CMD ["python", "comparison_diagnostics.py"]