From 68a10da2a6005720dcec0cc3010aa2ecb2c2f94a Mon Sep 17 00:00:00 2001 From: Liam Date: Thu, 16 Nov 2023 12:24:38 +0000 Subject: [PATCH] testing the test --- apps/node/Dockerfile | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/apps/node/Dockerfile b/apps/node/Dockerfile index 4fcd01a..75859e9 100644 --- a/apps/node/Dockerfile +++ b/apps/node/Dockerfile @@ -1,9 +1,19 @@ FROM fascinated/docker-images:node-pnpm-latest +# Set the working directory to /app +WORKDIR /app -WORKDIR /usr/src/app -COPY . . -RUN echo ls -a -ENV PORT=3000 +# Copy the current directory contents into the container at /app +COPY . /app + +# Install any needed packages specified in package.json +RUN pnpm install + +# Make port 3000 available to the world outside this container EXPOSE 3000 -CMD [ "pnpm", "start" ] \ No newline at end of file + +# Define environment variable +ENV NODE_ENV=production + +# Run app.js when the container launches +CMD ["pnpm", "start"]