-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (23 loc) · 859 Bytes
/
Dockerfile
File metadata and controls
31 lines (23 loc) · 859 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
FROM ubuntu:22.04
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y software-properties-common && \
apt-get install -y curl && \
apt-get install -y bash && \
apt-get update && \
apt-get install -y python3.11 python3.11-distutils python3.11-venv python3-pip pkg-config make
RUN add-apt-repository ppa:deadsnakes/ppa -y && \
apt-get update -y && \
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y && \
export PATH="$HOME/.cargo/bin:$PATH"
# Set environment variable to make Cargo available in PATH
ENV PATH="/root/.cargo/bin:${PATH}"
# Set work directory
WORKDIR /app
# Copy the application code
COPY . /app
RUN python3.11 -m pip install -r requirements.txt
ENV PYTHONPATH="."
# Run the application
RUN chmod +x entrypoint-validator.sh
ENTRYPOINT ["./entrypoint-validator.sh"]