CoolFace
Apppublic

Elevatics/ai-web-scraper-backend

sourceHugging Facemitupdated 2y agoView on Hugging Face
0likes
Dockerfile27 linesDownload Raw Back to root
1# Use Node.js LTS (Long Term Support) version2FROM node:20-slim3 4# Create app directory5WORKDIR /usr/src/app6 7# Install app dependencies8# A wildcard is used to ensure both package.json AND package-lock.json are copied9COPY package*.json ./10 11# Install dependencies12RUN npm install13 14# Bundle app source15COPY . .16 17# Create a directory for uploaded files if needed18#RUN mkdir -p public19 20# Your app binds to port 3000 so you'll use the EXPOSE instruction to have it mapped by the docker daemon21EXPOSE 786022 23# Define environment variable24ENV PORT=786025 26# Command to run the application27CMD [ "node", "index.js" ]