Skip to content

Commit 608d959

Browse files
fix: add app to sudoers (#15)
1 parent 06b9758 commit 608d959

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ VOLUME /model
1313
LABEL DEPLOYMENT_TYPE=APP
1414

1515
RUN apt-get update && \
16-
apt-get -y install wget libgomp1 curl
16+
apt-get -y install wget curl sudo
1717

1818
RUN wget -qO/bin/grpc_health_probe https://github.com/grpc-ecosystem/grpc-health-probe/releases/download/${GRPC_HEALTH_PROBE_VERSION}/grpc_health_probe-linux-amd64 && \
1919
chmod +x /bin/grpc_health_probe
@@ -38,6 +38,7 @@ RUN useradd -u 42069 app && \
3838
chown app /app && \
3939
chmod +x /app/start.sh
4040

41+
RUN echo "app ALL=NOPASSWD: /usr/bin/apt" > /etc/sudoers
4142
USER app
4243

4344
CMD ["/app/start.sh"]

0 commit comments

Comments
 (0)