-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdockerfile
More file actions
44 lines (36 loc) · 910 Bytes
/
Copy pathdockerfile
File metadata and controls
44 lines (36 loc) · 910 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
39
40
41
42
43
44
# FROM python:3.9-slim
FROM ubuntu:20.04
# Switch to root user to install packages
USER root
# Update and install dependencies using apt
RUN apt-get update && apt-get install -y --no-install-recommends \
python3-dev \
python3-venv \
python3 \
python3-distutils \
python3-pip \
gdb \
binutils \
tmux \
sudo \
git \
gdb-multiarch \
bash \
gcc-powerpc-linux-gnu \
vim \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Copy requirements file and install Python dependencies
COPY requirements.txt /app/
RUN pip install -r requirements.txt
# Copy all files and directories from the current context to the image
COPY . /app/
# Set ARG and ENV variables
ARG HOST_PATH
ENV HOST_PATH=${HOST_PATH}
# Make scripts executable
RUN chmod +x /app/*.py
RUN chmod +x /app/*.sh
# Set the default entrypoint
ENTRYPOINT ["/app/entrypoint.sh"]