From e9596d6b581061ddaf250335c1d4cf567b26ad2c Mon Sep 17 00:00:00 2001 From: Matthew Aaron Raymer Date: Mon, 28 Aug 2023 16:51:40 +0800 Subject: [PATCH] Temporary Dockerfile ... still in need of more work --- Dockerfile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..73f8909 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,21 @@ +FROM node:18.17.1-alpine3.17 + +# Set the working directory inside the container +WORKDIR /usr/src/app + +# Copy package.json and package-lock.json into the container +COPY package*.json ./ + +# Install app dependencies inside the container +RUN npm install + +RUN npm run build + +# Copy the application code into the container +COPY . . + +# Expose port 3000 to interact with the application +EXPOSE 3000 + +# Define the command to run the application +CMD [ "npm", "start" ]