idbot / Dockerfile
ItsMa8di's picture
changed webhook settings
6a253a2
Raw History Blame Contribute Delete
480 Bytes
# Use a lightweight Node.js image
FROM node:20-alpine
# Set the working directory inside the container
WORKDIR /app
# Copy only the necessary files to reduce build context size
COPY package.json package-lock.json ./
# Install dependencies
RUN npm install
# Copy the rest of the application code into the container
COPY . .
# Compile TypeScript code
RUN npx tsc
# Expose the port that your app will run on
EXPOSE 3000
# Start the application
CMD ["node", "./dist/index.js"]