-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
38 lines (29 loc) · 940 Bytes
/
Dockerfile
File metadata and controls
38 lines (29 loc) · 940 Bytes
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
FROM python:3.11.3
# System dependencies
RUN apt-get update && apt-get install -y \
build-essential \
clang \
libclang-dev \
netcat
# Install Kafka
RUN apt-get install -y librdkafka-dev
# Install RocksDB
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y && \
. "$HOME/.cargo/env"
ENV PATH="/root/.cargo/bin:${PATH}"
RUN apt-get install -y software-properties-common gnupg && \
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 4F4EA0AAE5267A6C && \
apt-get update && \
apt-get install -y librocksdb-dev
# Clean up
RUN apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Set the working directory in the container
WORKDIR /app
# Copy the requirements file into the container
COPY requirements.txt .
# Install any dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy the application code into the container
COPY . .
ENTRYPOINT ["python", "main.py"]