From 76610a60a2c563b5dc5aa4607544a13bac0578ea Mon Sep 17 00:00:00 2001 From: Michael Beemer Date: Thu, 30 Nov 2023 16:16:06 -0500 Subject: [PATCH] fix: remove workspace yaml in docker container (#256) Signed-off-by: Michael Beemer --- .github/workflows/release-please.yml | 2 +- packages/app/Dockerfile | 4 ++-- packages/fibonacci-service/Dockerfile | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 40b6e25e..efa4a1f6 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -31,7 +31,7 @@ jobs: - name: Checkout uses: actions/checkout@v3 with: - ref: ${{ steps.release.outputs.tag_name }} + ref: ${{ needs.release-please.outputs.release_tag_name }} - name: Log in to the Container registry uses: docker/login-action@v2 diff --git a/packages/app/Dockerfile b/packages/app/Dockerfile index 26718462..2a50a587 100644 --- a/packages/app/Dockerfile +++ b/packages/app/Dockerfile @@ -1,8 +1,8 @@ FROM node:20.3-bullseye AS builder WORKDIR /tmp/playground/ -COPY package*.json workspace.json tsconfig*.json nx.json babel.config.json ./ +COPY package*.json tsconfig*.json nx.json babel.config.json ./ COPY schemas/ ./schemas/ -RUN npm install +RUN npm ci COPY packages/ ./packages/ RUN npm run build:app diff --git a/packages/fibonacci-service/Dockerfile b/packages/fibonacci-service/Dockerfile index d9d3424a..bf1c4486 100644 --- a/packages/fibonacci-service/Dockerfile +++ b/packages/fibonacci-service/Dockerfile @@ -1,7 +1,7 @@ FROM node:20.3-bullseye-slim AS builder WORKDIR /tmp/playground/ -COPY package*.json workspace.json tsconfig*.json nx.json babel.config.json ./ -RUN npm install +COPY package*.json tsconfig*.json nx.json babel.config.json ./ +RUN npm ci COPY packages/ ./packages/ RUN npm run build:fib-service