Skip to content

Commit

Permalink
Fix Dockerfile to use GH Access Token
Browse files Browse the repository at this point in the history
  • Loading branch information
Sven65 authored Jan 23, 2023
1 parent ae4439c commit c4ad195
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
FROM node:18 as builder

ARG GITHUB_ACCESS_TOKEN

WORKDIR /usr/src/app

COPY yarn.lock tsconfig.json package*.json *.yml ./
Expand All @@ -12,6 +14,8 @@ RUN yarn install && yarn build

FROM node:18-alpine as deps

ARG GITHUB_ACCESS_TOKEN

WORKDIR /deps
COPY package.json .
COPY yarn.lock .
Expand All @@ -33,4 +37,4 @@ COPY --from=builder /usr/src/app/dist ./dist
COPY --from=builder /usr/src/app/openapi.yml /usr/src/app/openapi.yml
COPY --from=builder /usr/src/app/resources ./resources

CMD ["dist/index.js"]
CMD ["dist/index.js"]

0 comments on commit c4ad195

Please sign in to comment.