From 223595342610f5a3701f6075b04bbd4372a3da3f Mon Sep 17 00:00:00 2001 From: simple Date: Wed, 2 Apr 2025 00:12:14 +0900 Subject: [PATCH] =?UTF-8?q?Dockerfile=20=EC=82=AD=EC=A0=9C=20=EB=B0=8F=20.?= =?UTF-8?q?gitignore=EC=97=90=20build=20=EB=94=94=EB=A0=89=ED=86=A0?= =?UTF-8?q?=EB=A6=AC=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 3 ++- Dockerfile | 37 ------------------------------------- 2 files changed, 2 insertions(+), 38 deletions(-) delete mode 100644 Dockerfile diff --git a/.gitignore b/.gitignore index 28f1ba7..323a40d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ node_modules -.DS_Store \ No newline at end of file +.DS_Store +build \ No newline at end of file diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index 58878ab..0000000 --- a/Dockerfile +++ /dev/null @@ -1,37 +0,0 @@ -# Generated by https://smithery.ai. See: https://smithery.ai/docs/config#dockerfile -# Use an official Node.js image as the base image -FROM node:16-alpine AS builder - -# Set the working directory -WORKDIR /app - -# Copy package.json and package-lock.json files -COPY package.json package-lock.json ./ - -# Install dependencies -RUN npm install --ignore-scripts - -# Copy the rest of the application code -COPY . . - -# Build the application -RUN npm run build - -# Use a smaller image for the runtime -FROM node:16-alpine AS runner - -# Set the working directory -WORKDIR /app - -# Copy the build output and package.json -COPY --from=builder /app/build ./build -COPY --from=builder /app/package.json ./ - -# Set environment variables -ENV GITLAB_API_URL=https://gitlab.com/api/v4 - -# Define the command to run the application -ENTRYPOINT ["node", "build/index.js"] - -# This image requires the following environment variable at runtime: -# - GITLAB_PERSONAL_ACCESS_TOKEN: Your GitLab personal access token