Spaces:
Running
Running
File size: 505 Bytes
014ba0a 6099975 014ba0a 6099975 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# Use the official Node.js v18 image as the base image
FROM node:18
# Set the working directory inside the container
WORKDIR /app
# Copy package.json and package-lock.json to the working directory
COPY package*.json ./
# Install dependencies
RUN npm install
# Copy the entire application code to the working directory
COPY . .
# Build the TypeScript code
# RUN npm run build
# Expose the port on which your application will run
EXPOSE 4000
# Command to run the application
CMD ["npm", "start:dev"]
|