Skip to content

Commit

Permalink
fix fly path and ensure it's located in /opt/resource/
Browse files Browse the repository at this point in the history
  • Loading branch information
o-orand committed Sep 7, 2020
1 parent 0f0259d commit 021158f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions dockerfiles/alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,18 @@ RUN go build -o /assets/in ./cmd/in \
FROM alpine:edge AS resource
RUN apk add --no-cache bash tzdata ca-certificates
COPY --from=builder assets/ /opt/resource/
RUN tar xzvf /opt/resource/fly*.tgz \
RUN cd /opt/resource/ \
&& tar xzvf /opt/resource/fly*.tgz \
&& rm /opt/resource/fly*.tgz
RUN chmod +x /opt/resource/*

# test image
# ============================================================================
FROM resource AS tests
COPY --from=builder /tests /go-tests
RUN set -e; for test in /go-tests/*.test; do \
$test; \
done
RUN /opt/resource/fly --version

# export runtime image
# ============================================================================
Expand Down

0 comments on commit 021158f

Please sign in to comment.