From 512b86592cb4c5622099e8fa9da7107106d8f890 Mon Sep 17 00:00:00 2001 From: suvajit Date: Sun, 14 Jan 2024 22:09:50 +0530 Subject: [PATCH] fix docker image --- .github/workflows/build-and-publish.yml | 2 +- Dockerfile | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-and-publish.yml b/.github/workflows/build-and-publish.yml index becb3d3..8c0151c 100644 --- a/.github/workflows/build-and-publish.yml +++ b/.github/workflows/build-and-publish.yml @@ -58,7 +58,7 @@ jobs: - id: upload-to-gcp uses: google-github-actions/upload-cloud-storage@v2 with: - path: assets.zip + path: raw_json.zip predefinedAcl: publicRead destination: ${{ env.GCP_BUCKET_NAME }} diff --git a/Dockerfile b/Dockerfile index 086067e..f2f729d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,15 @@ FROM node:20-alpine +# RUN apt-get update && apt-get install -y python build-essential +# RUN apk add --update --no-cache --virtual .build-deps make gcc g++ python +RUN apk add --no-cache --virtual .build-deps alpine-sdk python3 + WORKDIR / COPY . . RUN npm i +RUN apk del .build-deps + ENTRYPOINT ["node", "src/index.js", "--decompress"] \ No newline at end of file