Skip to content

Commit

Permalink
Pull dependencies from the runner
Browse files Browse the repository at this point in the history
It has access to the internet.
  • Loading branch information
greg0ire committed Jul 4, 2024
1 parent a5e2658 commit 49aa861
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,8 @@ jobs:
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}

- name: Unconfigure npm proxy
run: |
npm config rm proxy
npm config rm https-proxy
- name: Pull yarn dependencies
run: yarn install

- name: Build and push Docker image
id: build-and-push
Expand Down
5 changes: 1 addition & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,7 @@ EXPOSE 3000

USER node

COPY --chown=node:node package.json /home/node/app/package.json
COPY --chown=node:node yarn.lock /home/node/app/yarn.lock
COPY --chown=node:node dist /home/node/app/dist

RUN yarn install --network-timeout 1000000
COPY --chown=node:node node_modules /home/node/app/node_modules

CMD ["node", "dist/src/index.js"]

0 comments on commit 49aa861

Please sign in to comment.