Skip to content

Commit

Permalink
Use lighter docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
victowang committed Mar 25, 2021
1 parent 20b9573 commit 8d64c79
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
FROM ubuntu:20.04
FROM alpine:3.7

RUN apt-get update && apt-get install -y curl jq
RUN apk add --update bash curl jq

COPY entrypoint.sh /entrypoint.sh
COPY . .

ENTRYPOINT ["/entrypoint.sh"]
4 changes: 1 addition & 3 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

set -ex

shopt -s nocasematch

# Check required environment variables
if [ -z $INPUT_DT_UPLOAD_API_KEY ]; then
echo "Missing input: DT_UPLOAD_API_KEY"
Expand Down Expand Up @@ -35,7 +33,7 @@ do
upload_url=$(echo ${response_body} | jq -r ".upload_url")

# Step 2: upload the APK
step2_response=$(curl -F file=@${INPUT_UPLOAD_BINARY_PATH} ${upload_url}) && echo ${step2_response} && break
step2_response=$(curl -F file=@"${INPUT_UPLOAD_BINARY_PATH}" ${upload_url}) && echo ${step2_response} && break
done

if [ ${retry} -ge ${maxRetries} ]; then
Expand Down

0 comments on commit 8d64c79

Please sign in to comment.