-
-
Notifications
You must be signed in to change notification settings - Fork 83
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (24 loc) · 579 Bytes
/
Dockerfile
File metadata and controls
32 lines (24 loc) · 579 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
# Use Node.js 22 as specified in package.json
FROM node:22-alpine
# Install system dependencies
RUN apk add --no-cache \
python3 \
make \
g++ \
postgresql-client \
bash
# Create app directory
WORKDIR /app
# Copy package files
COPY package*.json ./
# Install dependencies
RUN npm install --legacy-peer-deps
# Copy source code
COPY . .
# Make entrypoint script executable
COPY docker-entrypoint.sh /docker-entrypoint.sh
RUN chmod +x /docker-entrypoint.sh
# Expose port 3000
EXPOSE 3000
# Use custom entrypoint script
ENTRYPOINT ["/docker-entrypoint.sh"]