From 7f1558ab20ae228ae2fcd0393fdbd86118de5227 Mon Sep 17 00:00:00 2001 From: Louis Date: Wed, 15 May 2024 12:17:11 +0200 Subject: [PATCH] ci: updated api dockerfile --- apps/api/Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/api/Dockerfile b/apps/api/Dockerfile index 3890368..21498fc 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 ./apps/api/package.json ./ +COPY package.json ./ RUN cat ./package.json @@ -19,7 +19,7 @@ RUN apk add --no-cache --virtual .build-deps \ && yarn cache clean # Copy the rest of the application code to the container -COPY ./apps/api/ . +COPY . . # Generate prisma client @@ -35,7 +35,7 @@ FROM node:20-alpine AS run WORKDIR /app # Copy package.json and yarn.lock to the container -COPY ./apps/api/package.json ./ +COPY package.json ./ RUN cat ./package.json @@ -70,4 +70,4 @@ RUN yarn prisma generate EXPOSE 4040 # Start the application with dumb-init -CMD ["dumb-init", "node", "app/dist/index.js"] \ No newline at end of file +CMD ["dumb-init", "node", "index.js"] \ No newline at end of file