ejschwartz commited on
Commit
fd9a510
·
1 Parent(s): c7fd7d0

Ghidra docker

Browse files
Files changed (1) hide show
  1. Dockerfile +11 -10
Dockerfile CHANGED
@@ -1,16 +1,20 @@
1
- # read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
2
- # you will also find guides on how best to write your Dockerfile
3
 
4
- FROM python:3.9
5
 
6
  WORKDIR /code
7
 
8
  COPY ./requirements.txt /code/requirements.txt
9
 
10
- RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
 
 
 
11
 
12
- # Set up a new user named "user" with user ID 1000
13
- RUN useradd -m -u 1000 user
 
 
14
 
15
  # Switch to the "user" user
16
  USER user
@@ -25,7 +29,4 @@ WORKDIR $HOME/app
25
  # Copy the current directory contents into the container at $HOME/app setting the owner to the user
26
  COPY --chown=user . $HOME/app
27
 
28
- # Disable buffering to allow logging of standard output.
29
- ENV PYTHONUNBUFFERED=1
30
-
31
- CMD ["python", "main.py"]
 
1
+ # From https://huggingface.co/spaces/sayakpaul/demo-docker-gradio/blob/main/Dockerfile
 
2
 
3
+ FROM blacktop/ghidra:latest
4
 
5
  WORKDIR /code
6
 
7
  COPY ./requirements.txt /code/requirements.txt
8
 
9
+ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
10
+ --mount=type=cache,target=/var/lib/apt,sharing=locked \
11
+ apt-get -y update && apt-get -y install -y python3-pip python-is-python3 \
12
+ git pkg-config libsentencepiece-dev libprotobuf-dev nano sudo unzip
13
 
14
+ RUN --mount=type=cache,target=/root/.cache pip install --break-system-packages --upgrade -r /code/requirements.txt
15
+
16
+ # Set up a new user named "user"
17
+ RUN useradd -m -o -u 1000 user
18
 
19
  # Switch to the "user" user
20
  USER user
 
29
  # Copy the current directory contents into the container at $HOME/app setting the owner to the user
30
  COPY --chown=user . $HOME/app
31
 
32
+ CMD ["python", "main.py"]