Skip to content

Commit cd1509f

Browse files
committed
remove the polycube source code from the base image
1 parent 44ba206 commit cd1509f

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

Dockerfile_base_image

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# syntax = tonistiigi/dockerfile:runmount20180618
22
FROM ubuntu:18.04
3-
RUN --mount=target=/polycube cp -r /polycube /tmp/polycube && \
4-
cd /tmp/polycube && \
5-
SUDO="" WORKDIR="/tmp/dev" \
3+
COPY scripts/pre-requirements.sh /tmp/
4+
RUN cd /tmp/ && \
65
apt update && \
7-
./scripts/pre-requirements.sh
6+
SUDO="" WORKDIR="/tmp/dev" ./pre-requirements.sh && \
7+
rm -f /tmp/pre-requirements.sh

scripts/pre-requirements.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ then
55
fi
66
mkdir -p $WORKDIR
77

8-
$SUDO sudo apt update
8+
$SUDO apt update
99
$SUDO bash -c "apt install --allow-unauthenticated -y wget gnupg2 software-properties-common"
1010

1111
# golang v1.12 still not available in repos

0 commit comments

Comments
 (0)