remove entrypoint from ec2 image
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
8ea5ac41a8
commit
9888d672a3
@ -25,8 +25,6 @@ ENV PIP_PACKAGES="\
|
||||
pycrypto \
|
||||
"
|
||||
|
||||
COPY ./ec2-entrypoint.sh /docker-entrypoint.sh
|
||||
|
||||
RUN \
|
||||
apk update \
|
||||
&& apk add --update --no-cache ${PACKAGES} \
|
||||
@ -38,4 +36,3 @@ RUN \
|
||||
&& chmod 700 /root/.ssh
|
||||
|
||||
USER root
|
||||
ENTRYPOINT ["/docker-entrypoint.sh"]
|
||||
|
@ -1,10 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
set -o pipefail
|
||||
set -o errtrace
|
||||
set -o nounset
|
||||
set -o errexit
|
||||
|
||||
if [ "$EC2_SSH_KEY" ]; then
|
||||
echo "$EC2_SSH_KEY" > $HOME/.ssh/ec2_key
|
||||
chmod 600 $HOME/.ssh/ec2_key
|
||||
fi
|
Reference in New Issue
Block a user