Skip to content

Commit 021158f

Browse files
committed
fix fly path and ensure it's located in /opt/resource/
1 parent 0f0259d commit 021158f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

dockerfiles/alpine/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,18 @@ RUN go build -o /assets/in ./cmd/in \
3232
FROM alpine:edge AS resource
3333
RUN apk add --no-cache bash tzdata ca-certificates
3434
COPY --from=builder assets/ /opt/resource/
35-
RUN tar xzvf /opt/resource/fly*.tgz \
35+
RUN cd /opt/resource/ \
36+
&& tar xzvf /opt/resource/fly*.tgz \
3637
&& rm /opt/resource/fly*.tgz
3738
RUN chmod +x /opt/resource/*
38-
3939
# test image
4040
# ============================================================================
4141
FROM resource AS tests
4242
COPY --from=builder /tests /go-tests
4343
RUN set -e; for test in /go-tests/*.test; do \
4444
$test; \
4545
done
46+
RUN /opt/resource/fly --version
4647

4748
# export runtime image
4849
# ============================================================================

0 commit comments

Comments
 (0)