Skip to content

Commit

Permalink
Move gdrive container codemod fix to Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
ColinMcNeil committed Dec 21, 2024
1 parent 12dfc22 commit d900d43
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
7 changes: 4 additions & 3 deletions src/gdrive/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ RUN --mount=type=cache,target=/root/.npm-production npm ci --ignore-scripts --om

FROM node:22-alpine AS release

# Install bash and sed
RUN apk add --no-cache bash sed

WORKDIR /app

COPY --from=builder /app/dist /app/dist
Expand All @@ -22,8 +25,6 @@ ENV NODE_ENV=production

RUN npm ci --ignore-scripts --omit-dev

RUN sh /replace_open.sh

RUN rm /replace_open.sh
RUN /bin/sed -i 's/opn(authorizeUrl, { wait: false }).then(cp => cp.unref());/process.stderr.write(`Open this URL in your browser: ${authorizeUrl}\n`);/' node_modules/@google-cloud/local-auth/build/src/index.js

ENTRYPOINT ["node", "dist/index.js"]
5 changes: 0 additions & 5 deletions src/gdrive/replace_open.sh

This file was deleted.

0 comments on commit d900d43

Please sign in to comment.