Skip to content

Commit 56ae1f9

Browse files
committed
fix product catalog build
1 parent d42cab0 commit 56ae1f9

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

install.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ echo -e "${YELLOW}→${NC} Creating working directory: ${WORK_DIR}"
4545
mkdir -p "${WORK_DIR}"
4646
cd "${WORK_DIR}"
4747

48+
# Clear working directory
49+
rm -rf "${WORK_DIR:?}/*"
50+
4851
# Download docker-compose.yml
4952
echo -e "${YELLOW}${NC} Downloading docker-compose.yml..."
5053
if ! curl -fsSL "${COMPOSE_FILE_URL}" -o docker-compose.yml; then

src/product-catalog/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ FROM gcr.io/distroless/static-debian12:nonroot
2121

2222
WORKDIR /usr/src/app/
2323

24-
COPY --from=builder /usr/src/app/product-catalog/ ./
24+
COPY --from=builder /usr/src/app/product-catalog ./
25+
COPY --from=builder /usr/src/app/products/ ./products/
2526

2627
EXPOSE ${PRODUCT_CATALOG_PORT}
2728
ENTRYPOINT [ "./product-catalog" ]

0 commit comments

Comments
 (0)