-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (18 loc) · 726 Bytes
/
Dockerfile
File metadata and controls
25 lines (18 loc) · 726 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# ============================================================
# ApnaWorker — Dockerfile
# Coolify will use this to build and run your app
# ============================================================
# Step 1: Use official Node.js 20 (stable, lightweight)
FROM node:20-alpine
# Step 2: Set working directory inside the container
WORKDIR /app
# Step 3: Copy the backend package files first (for caching)
COPY backend/package*.json ./backend/
# Step 4: Install backend dependencies
RUN cd backend && npm install --production
# Step 5: Copy ALL project files (HTML, CSS, JS, images, backend)
COPY . .
# Step 6: Expose the port your app runs on
EXPOSE 5000
# Step 7: Start the server
CMD ["node", "backend/server.js"]