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