Skip to content

Commit

Permalink
ci: removed package-lock.json and fixed up docker and build files als…
Browse files Browse the repository at this point in the history
…o new yarn.lock file
  • Loading branch information
kevkevinpal committed Apr 26, 2023
1 parent fda1760 commit e2166f5
Show file tree
Hide file tree
Showing 4 changed files with 512 additions and 473 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
2 changes: 2 additions & 0 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,15 @@ jobs:
echo ${{ env.RELEASE_TAG }}
- name: Run Docker buildx
run: |
export CI=true \
docker buildx build \
--cache-to "type=local,dest=/tmp/.buildx-cache" \
--platform linux/amd64 \
--tag "${{ secrets.DOCKER_HUB_USER }}/sphinx-nav-fiber:${{ env.RELEASE_TAG }}" \
--output "type=registry" ./
- name: Run Docker buildx with latest tag
run: |
export CI=true \
docker buildx build \
--cache-to "type=local,dest=/tmp/.buildx-cache" \
--platform linux/amd64 \
Expand Down
7 changes: 3 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@ FROM node:16 as build
# Create app directory
WORKDIR /usr/src/app

COPY package*.json ./
COPY yarn.lock ./
COPY .git ./
RUN yarn install
COPY package*.json .
COPY yarn.lock .
RUN yarn cache clean && yarn install

COPY . .

Expand Down
Loading

0 comments on commit e2166f5

Please sign in to comment.