From 0d0419a6c8b97ab3ed74e06091cca5aa8f77786e Mon Sep 17 00:00:00 2001 From: Shane Earley Date: Wed, 15 Mar 2023 10:42:25 -0400 Subject: [PATCH] Change image build asset copy to relative path --- services/users/Dockerfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/services/users/Dockerfile b/services/users/Dockerfile index cc71bed1c..f55737da3 100644 --- a/services/users/Dockerfile +++ b/services/users/Dockerfile @@ -9,21 +9,21 @@ RUN apk add --no-cache git # Set the working directory to /tmp WORKDIR /tmp -# Copy files to the working directory +# Copy all files to /tmp COPY . . # Install the dependencies RUN npm install -# Build the TypeScript project +# Build the service RUN npm run build --workspace @casimir/users +# Copy the build assets to /app +COPY ./services/users/dist /app + # Set the working directory to /app WORKDIR /app -# Copy the build assets to the working directory -COPY /tmp/services/users/dist . - # Expose port 4000 EXPOSE 4000