Skip to content

Commit

Permalink
fix dockerfile to pull bin from correct location
Browse files Browse the repository at this point in the history
  • Loading branch information
xadhatter committed Dec 8, 2023
1 parent c1fe232 commit 34adadd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# Compress binary
FROM ghcr.io/xigxog/upx:4.2.1 AS upx

ARG BIN
ARG COMPRESS=false

COPY ./bin/fox /fox
COPY ${BIN} /fox
RUN if ${COMPRESS}; then upx /fox; fi

# Runtime
Expand Down
2 changes: 0 additions & 2 deletions efs/embed.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,3 @@ const (

//go:embed all:*
var EFS embed.FS

// TODO update demo code
2 changes: 1 addition & 1 deletion hack/scripts/image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ if ${DEBUG}; then
DOCKERFILE="--file Dockerfile.debug ."
fi

buildah bud --build-arg COMPRESS="${COMPRESS}" --tag "${IMAGE}" ${DOCKERFILE}
buildah bud --build-arg BIN="${BUILD_OUT}/${BIN}" --build-arg COMPRESS="${COMPRESS}" --tag "${IMAGE}" ${DOCKERFILE}

if ${PUSH}; then
buildah push "${IMAGE}"
Expand Down

0 comments on commit 34adadd

Please sign in to comment.