Skip to content

Commit 0bdfbf1

Browse files
fixed the vul
1 parent 0eec5de commit 0bdfbf1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

build/content-service/Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
FROM --platform=linux/x86_64 eclipse-temurin:11.0.20.1_1-jdk-focal
22
RUN apt-get update \
3+
&& apt-get upgrade -y \
34
&& apt-get install -y unzip curl \
45
&& adduser --uid 1001 --home /home/sunbird/ --disabled-login sunbird \
56
&& mkdir -p /home/sunbird \
6-
&& chown -R sunbird:sunbird /home/sunbird
7+
&& chown -R sunbird:sunbird /home/sunbird \
8+
&& apt-get clean \
9+
&& rm -rf /var/lib/apt/lists/*
710
USER sunbird
811
COPY ./content-api/content-service/target/content-service-1.0-SNAPSHOT-dist.zip /home/sunbird/
912
RUN unzip /home/sunbird/content-service-1.0-SNAPSHOT-dist.zip -d /home/sunbird/

0 commit comments

Comments
 (0)