This repository has been archived on 2025-07-16. You can view files and clone it, but cannot push or open issues or pull requests.
Files
vue-with-websockets/Dockerfile.backend
2025-07-07 13:21:35 +03:00

23 lines
397 B
Docker

FROM node:22-alpine AS base
WORKDIR /app
# --- Dependecies stage ---
FROM base AS deps
WORKDIR /app
# Install nodemon for hot reloading
RUN npm install -g nodemon
# Copy dependency files, and install them
COPY package.json package-lock.json ./
RUN npm install
# --- Development stage ---
FROM deps AS dev
WORKDIR /app
# Copy all files and start dev server
COPY . .
CMD ["npm", "run", "dev"]