Files
doing-it-website/Dockerfile.dev

18 lines
292 B
Docker

FROM node:18-alpine
WORKDIR /app
# Copy package files first for better caching
COPY package.json package-lock.json* ./
# Install dependencies (no cache to ensure fresh install)
RUN npm install --no-cache
# Copy app files
COPY . .
EXPOSE 3000
CMD ["npm", "run", "dev"]