17 lines
234 B
Docker
17 lines
234 B
Docker
# Use official Node.js image
|
|
FROM node:18-alpine
|
|
|
|
WORKDIR /app
|
|
|
|
# Copy and install dependencies
|
|
COPY app/package*.json ./
|
|
RUN npm install --production
|
|
|
|
# Copy app files
|
|
COPY app ./
|
|
|
|
EXPOSE 3000
|
|
|
|
# Run the app
|
|
CMD ["node", "index.js"]
|