Spaces:
Runtime error
Runtime error
# Use an official Node.js runtime as a parent image | |
FROM node:18 | |
# Set the working directory to /app | |
WORKDIR /app | |
# Copy the current directory contents into the container at /app | |
COPY . /app | |
# Install any needed packages specified in package.json | |
RUN npm install | |
# Make port 3000 available to the world outside this container | |
EXPOSE 3000 | |
# Run the app when the container launches | |
CMD ["npm", "start"] |