-
Notifications
You must be signed in to change notification settings - Fork 70
Expand file tree
/
Copy pathDockerfile.backend
More file actions
37 lines (31 loc) · 850 Bytes
/
Dockerfile.backend
File metadata and controls
37 lines (31 loc) · 850 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
26
27
28
29
30
31
32
33
34
35
36
37
FROM node:18-alpine
# Add Python and build dependencies
RUN apk add --no-cache python3 make g++ gcc
WORKDIR /app
# Install dependencies first (better layer caching)
COPY run/package*.json ./
RUN npm ci --only=production
# Copy application files
COPY run/api ./api
COPY run/config ./config
COPY run/constants ./constants
COPY run/emails ./emails
COPY run/jobs ./jobs
COPY run/lib ./lib
COPY run/middlewares ./middlewares
COPY run/models ./models
COPY run/webhooks ./webhooks
COPY run/workers ./workers
COPY run/migrations ./migrations
COPY run/seeders ./seeders
COPY run/.sequelizerc ./
COPY run/app.js .
COPY run/index.js .
COPY run/queues.js .
COPY run/scheduler.js .
COPY run/instrument.js .
# Install sequelize-cli globally for migrations
RUN npm install -g sequelize-cli && \
npm install -g nodemon
EXPOSE 8888
CMD ["node", "index.js"]