From 74d51bd8ddf599992a06125266dd1015105ffe68 Mon Sep 17 00:00:00 2001 From: zramsay Date: Tue, 17 Oct 2023 16:36:42 -0400 Subject: [PATCH] dockerfile --- Dockerfile | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..5b361fb --- /dev/null +++ b/Dockerfile @@ -0,0 +1,22 @@ +# Specify the base image +FROM node:lts-alpine + +# Set the working directory inside the container +WORKDIR /app + +# Copy package.json and package-lock.json (if available) to the working directory +COPY package*.json ./ + +# Install dependencies +RUN yarn + +# Copy the rest of the application code +COPY . . + +RUN yarn build + +# Expose a port (if your app needs to listen on a specific port) +EXPOSE 3000 + +# Define the command to run your app +CMD ["yarn", "start"]