medusa-js-2-docker/Dockerfile
2025-04-08 13:19:40 +10:00

15 lines
269 B
Docker

# Use an official Node.js image as the base
FROM node:16-alpine AS base
WORKDIR /app
# Install dependencies
COPY package*.json ./
RUN npm install
# Copy code and build for production
FROM base AS production
COPY . .
RUN npm run build
EXPOSE 9000
CMD ["npm", "start"]