From 41edac16c4be4f970900dbfb74b296da3cd149ed Mon Sep 17 00:00:00 2001 From: Yi-Ting Shih Date: Thu, 10 Jul 2025 15:18:16 +0800 Subject: [PATCH] Feat: add Dockerfile --- Dockerfile | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..0c0e43c --- /dev/null +++ b/Dockerfile @@ -0,0 +1,22 @@ +FROM gitea.konchin.com/image/alpine:latest + +# Set the working directory inside the container +WORKDIR /usr/src/app + +# Copy package.json and package-lock.json to the working directory +COPY package*.json ./ + +# Install the application dependencies +RUN npm install + +# Copy the rest of the application files +COPY . . + +# Build the NestJS application +RUN npm run build + +# Expose the application port +EXPOSE 3000 + +# Command to run the application +CMD ["node", "dist/main"]