chore(init): project setup with Docker support

This commit is contained in:
Leons Aleksandrovs
2025-07-07 13:21:35 +03:00
commit 4284804536
28 changed files with 8353 additions and 0 deletions

22
Dockerfile.backend Normal file
View File

@@ -0,0 +1,22 @@
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"]