From 2197e52f33932ee92af14991db979833fd72b928 Mon Sep 17 00:00:00 2001 From: Woodson Gates <43043100+faultoverload@users.noreply.github.com> Date: Sun, 11 Aug 2024 21:25:33 -0400 Subject: [PATCH] Create Dockerfile --- Dockerfile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..d6aeed7 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,20 @@ +# Use an official Node.js runtime as a parent image +FROM node:22 + +# Set the working directory in the container +WORKDIR /usr/src/app + +# Create the cache directory +RUN mkdir -p ./cache + +# Copy the current directory contents into the container at /usr/src/app +COPY . . + +# Install any needed packages specified in package.json +RUN npm install +RUN npm update +# Define environment variable +ENV NODE_ENV production + +# Run the app when the container launches +ENTRYPOINT ["tail", "-f", "/dev/null"]