SimpleAPI / Dockerfile
GreenRunchly's picture
Update Dockerfile
892b763 verified
raw
history blame contribute delete
322 Bytes
# Use official Node.js base image
FROM node:18-alpine
# Set working directory inside container
WORKDIR /usr/src/app
# Copy package files and install dependencies
COPY package*.json ./
RUN npm install
# Copy app files
COPY . .
# Expose the port the app runs on
EXPOSE 7860
# Start the application
CMD ["npm", "start"]