Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cwe_checker
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fact-gitdep
cwe_checker
Commits
379df4c3
Unverified
Commit
379df4c3
authored
4 years ago
by
Enkelmann
Committed by
GitHub
4 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change base image of dockerfile (#134)
parent
e85a7f16
master
No related merge requests found
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
18 deletions
+2
-18
Dockerfile
Dockerfile
+2
-18
No files found.
Dockerfile
View file @
379df4c3
...
@@ -5,32 +5,16 @@ WORKDIR /cwe_checker
...
@@ -5,32 +5,16 @@ WORKDIR /cwe_checker
COPY
. .
COPY
. .
RUN
cargo build
--release
RUN
cargo build
--release
FROM
phusion/baseimage:18.04-1.0.0
as runtime
FROM
fkiecad/ghidra_headless_base:9.2.1
as runtime
RUN
apt-get
-y
update
\
RUN
apt-get
-y
update
\
&&
install_clean
sudo
\
&&
apt-get
-y
install
sudo
\
&&
useradd
-m
cwe
\
&&
useradd
-m
cwe
\
&&
echo
"cwe:cwe"
| chpasswd
\
&&
echo
"cwe:cwe"
| chpasswd
\
&&
adduser cwe
sudo
\
&&
adduser cwe
sudo
\
&&
sed
-i
.bkp
-e
's/%sudo\s\+ALL=(ALL\(:ALL\)\?)\s\+ALL/%sudo ALL=NOPASSWD:ALL/g'
/etc/sudoers
&&
sed
-i
.bkp
-e
's/%sudo\s\+ALL=(ALL\(:ALL\)\?)\s\+ALL/%sudo ALL=NOPASSWD:ALL/g'
/etc/sudoers
USER
cwe
USER
cwe
WORKDIR
/home/cwe
ENV
PATH="/home/cwe/.cargo/bin/:${PATH}"
ENV
GHIDRA_VERSION="9.2.1_PUBLIC"
# Install Ghidra
RUN
sudo
apt-get
-y
update
\
&&
sudo
install_clean
\
curl
\
unzip
\
openjdk-11-jdk
\
&&
curl
-fSL
https://www.ghidra-sre.org/ghidra_9.2.1_PUBLIC_20201215.zip
-o
ghidra.zip
\
&&
unzip
-q
ghidra.zip
\
&&
sudo
mv ghidra_
${
GHIDRA_VERSION
}
/opt/ghidra
\
&&
rm ghidra.zip
# Install all necessary files from the builder stage
# Install all necessary files from the builder stage
COPY
--from=builder /cwe_checker/target/release/cwe_checker /home/cwe/cwe_checker
COPY
--from=builder /cwe_checker/target/release/cwe_checker /home/cwe/cwe_checker
COPY
--from=builder /cwe_checker/src/config.json /home/cwe/.config/cwe_checker/config.json
COPY
--from=builder /cwe_checker/src/config.json /home/cwe/.config/cwe_checker/config.json
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment