Create Dockerfile

This commit is contained in:
Woodson Gates
2024-08-11 21:25:33 -04:00
committed by GitHub
parent 78b61ec76e
commit 2197e52f33
+20
View File
@@ -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"]