diff --git a/apps/api/Dockerfile b/apps/api/Dockerfile index 1b48287..3ec9fae 100644 --- a/apps/api/Dockerfile +++ b/apps/api/Dockerfile @@ -5,7 +5,7 @@ FROM node:20-alpine AS build WORKDIR /app # Copy package.json and to the container -COPY ./package.json ./ +COPY ./apps/api/package.json ./ RUN apk add --update && apk add \ gcc \ @@ -17,7 +17,7 @@ RUN apk add --update && apk add \ dumb-init -COPY . . +COPY ./apps/api/ . RUN yarn install --frozen-lockfile && yarn cache clean && npm install -g typescript diff --git a/apps/media-server/Dockerfile b/apps/media-server/Dockerfile index dc53c51..83444fd 100644 --- a/apps/media-server/Dockerfile +++ b/apps/media-server/Dockerfile @@ -5,7 +5,7 @@ FROM node:20-alpine AS build WORKDIR /app # Copy package.json and to the container -COPY ./package.json ./ +COPY ./apps/media-server/package.json ./ RUN apk add --update && apk add \ gcc \ @@ -17,7 +17,7 @@ RUN apk add --update && apk add \ dumb-init -COPY . . +COPY ./apps/media-server/ . RUN yarn install --frozen-lockfile && yarn cache clean && npm install -g typescript