From 3f03002b40f03d4f4ea993f282307de793136b23 Mon Sep 17 00:00:00 2001 From: Dave Gordon Date: Sun, 18 Aug 2024 22:17:38 +0100 Subject: [PATCH] [aws] feat: User Profile --- backend/Dockerfile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/backend/Dockerfile b/backend/Dockerfile index aceb331..6b0e390 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -27,10 +27,14 @@ FROM node:20-alpine WORKDIR /usr/src/app +# Install dependencies required for the build +RUN apk add --no-cache bash + # Copy only the built artifacts and necessary files from the builder stage -COPY --from=builder /usr/src/app/dist ./dist -COPY --from=builder /usr/src/app/node_modules ./node_modules -COPY --from=builder /usr/src/app/wait-for-it.sh ./wait-for-it.sh +COPY --from=builder /usr/src/app/ ./ + +# Copy the wait-for-it.sh script and make it executable +RUN chmod +x wait-for-it.sh # Expose the port that the application will run on EXPOSE 5000