From b247827f758a71647b6e909e12a3831853b34c01 Mon Sep 17 00:00:00 2001 From: Hayden Hargreaves Date: Sat, 22 Feb 2025 23:12:16 -0700 Subject: [PATCH] FEAT: Dockerized! --- dockerfile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 dockerfile diff --git a/dockerfile b/dockerfile new file mode 100644 index 0000000..6932f15 --- /dev/null +++ b/dockerfile @@ -0,0 +1,20 @@ +# Use a Node.js base image +FROM node:18-alpine + +WORKDIR /app + +COPY package*.json ./ + +RUN npm install --omit=dev + +COPY . . + +# Build the application, will be placed in the build/ directory +RUN npm run build + +# Command to run after the build (e.g., a script, or just stay in the container) +# You can change this to whatever you want to run after the build. +CMD ["node", "build/index.js"] + +# OR, if you want to enter the container after the build: +# CMD ["/bin/sh"] # or CMD ["/bin/bash"] if bash is installed