mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
Fix CodeFactor
This commit is contained in:
parent
605e5e39b0
commit
8591816dfa
@ -1,7 +1,9 @@
|
||||
FROM mongo:latest
|
||||
FROM mongo:4
|
||||
|
||||
RUN apt-get update
|
||||
RUN apt-get -y install openssh-client
|
||||
RUN apt-get update \
|
||||
&& apt-get -y install --no-install-recommends openssh-client \
|
||||
&& apt-get clean \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
COPY .ssh /root/.ssh/
|
||||
COPY import.sh .
|
||||
|
||||
|
||||
@ -4,7 +4,7 @@ for var in "SSH_USERNAME" "SSH_HOST" "MONGODB_USERNAME" "MONGODB_PASSWORD" "MONG
|
||||
do
|
||||
if [[ -z "${!var}" ]]; then
|
||||
echo "${var} is undefined"
|
||||
exit -1
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user