Skip to content

Commit

Permalink
stripped
Browse files Browse the repository at this point in the history
  • Loading branch information
gjasny committed Oct 28, 2020
1 parent 19dbe55 commit 8d765b4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
8 changes: 2 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,7 @@ FROM ubuntu:20.04
ENV DEBIAN_FRONTEND=noninteractive

# update base packages
RUN apt-get update \
&& apt-get upgrade -y

# install sudo
RUN apt-get install -y sudo
RUN apt-get update && apt-get upgrade -y

# install nodejs
WORKDIR /opt
Expand All @@ -24,4 +20,4 @@ RUN npm --version
# run testcase
WORKDIR /testcase
ADD package.json .
RUN npm run suid-enable
RUN npm run testcase
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"version": "1.0.0",
"description": "dummy test case",
"scripts": {
"suid-enable": "sudo -- sh -c 'chmod u+s /bin/true'"
"testcase": "/bin/true"
}
}

0 comments on commit 8d765b4

Please sign in to comment.