Reverted changes in Dockerfile
Change-Id: Ibe4865ad417077cfc79559949f7a531bb3d04ce1
This commit is contained in:
parent
184b45e5f2
commit
1973a08297
@ -20,22 +20,21 @@ RUN wget --progress=dot:giga -O /usr/local/bin/dumb-init \
|
|||||||
https://github.com/Yelp/dumb-init/releases/download/v1.2.5/dumb-init_1.2.5_x86_64 && \
|
https://github.com/Yelp/dumb-init/releases/download/v1.2.5/dumb-init_1.2.5_x86_64 && \
|
||||||
chmod +x /usr/local/bin/dumb-init
|
chmod +x /usr/local/bin/dumb-init
|
||||||
|
|
||||||
# Add RD user
|
|
||||||
ARG RD_USER=root
|
|
||||||
#ARG RD_USER=rd
|
|
||||||
#RUN mkdir ${RD_HOME} && \
|
|
||||||
# addgroup ${RD_USER} && \
|
|
||||||
# adduser --home ${RD_HOME} --no-create-home --ingroup ${RD_USER} --disabled-password ${RD_USER} && \
|
|
||||||
# chown ${RD_USER}:${RD_USER} ${RD_HOME}
|
|
||||||
|
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get install --no-install-recommends -y \
|
&& apt-get install --no-install-recommends -y \
|
||||||
netcat=1.218-4ubuntu1 \
|
netcat=1.218-4ubuntu1 \
|
||||||
iputils-ping=3:20211215-1 \
|
|
||||||
telnet=0.17-44build1 \
|
|
||||||
vim=2:8.2.3995-1ubuntu2.16 \
|
|
||||||
net-tools=1.60+git20181103.0eebece-1ubuntu5 \
|
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
# iputils-ping=3:20211215-1 \
|
||||||
|
# telnet=0.17-44build1 \
|
||||||
|
# vim=2:8.2.3995-1ubuntu2.16 \
|
||||||
|
# net-tools=1.60+git20181103.0eebece-1ubuntu5 \
|
||||||
|
|
||||||
|
# Add RD user
|
||||||
|
ARG RD_USER=rd
|
||||||
|
RUN mkdir ${RD_HOME} && \
|
||||||
|
addgroup ${RD_USER} && \
|
||||||
|
adduser --home ${RD_HOME} --no-create-home --ingroup ${RD_USER} --disabled-password ${RD_USER} && \
|
||||||
|
chown ${RD_USER}:${RD_USER} ${RD_HOME}
|
||||||
|
|
||||||
# Set User and Workdir
|
# Set User and Workdir
|
||||||
USER ${RD_USER}
|
USER ${RD_USER}
|
||||||
@ -46,7 +45,6 @@ COPY --chown=${RD_USER}:${RD_USER} --from=rd-builder /app/dependencies
|
|||||||
COPY --chown=${RD_USER}:${RD_USER} --from=rd-builder /app/spring-boot-loader ${BASEDIR}
|
COPY --chown=${RD_USER}:${RD_USER} --from=rd-builder /app/spring-boot-loader ${BASEDIR}
|
||||||
COPY --chown=${RD_USER}:${RD_USER} --from=rd-builder /app/snapshot-dependencies ${BASEDIR}
|
COPY --chown=${RD_USER}:${RD_USER} --from=rd-builder /app/snapshot-dependencies ${BASEDIR}
|
||||||
COPY --chown=${RD_USER}:${RD_USER} --from=rd-builder /app/application ${BASEDIR}
|
COPY --chown=${RD_USER}:${RD_USER} --from=rd-builder /app/application ${BASEDIR}
|
||||||
#COPY --chown=${RD_USER}:${RD_USER} --from=rd-builder /app/run.sh ${BASEDIR}
|
|
||||||
|
|
||||||
COPY --chown=${RD_USER}:${RD_USER} run.sh ${BASEDIR}
|
COPY --chown=${RD_USER}:${RD_USER} run.sh ${BASEDIR}
|
||||||
COPY --chown=${RD_USER}:${RD_USER} wait_for_mongodb.sh ${BASEDIR}
|
COPY --chown=${RD_USER}:${RD_USER} wait_for_mongodb.sh ${BASEDIR}
|
||||||
|
Loading…
Reference in New Issue
Block a user