Spaces:
Running
Running
| FROM node:18-alpine | |
| # Install git | |
| RUN apk add --no-cache git | |
| # Clone the repo into /app | |
| RUN git clone https://github.com/WackyDawg/movie-api-wrapper.git /app | |
| # Set working directory to the src folder | |
| WORKDIR /app/src | |
| # Install dependencies inside src | |
| RUN npm install | |
| # Expose the intended port | |
| EXPOSE 7860 | |
| # Set environment to production | |
| ENV NODE_ENV=production | |
| # Start the application | |
| CMD ["npm", "start"] | |