wpms commited on
Commit
48087ca
·
verified ·
1 Parent(s): 628782c

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -15
Dockerfile CHANGED
@@ -1,6 +1,5 @@
1
  FROM node:18-slim
2
 
3
- # Install dependencies for mineflayer
4
  RUN apt-get update && apt-get install -y \
5
  python3 \
6
  make \
@@ -9,25 +8,12 @@ RUN apt-get update && apt-get install -y \
9
 
10
  WORKDIR /app
11
 
12
- # Copy package files
13
  COPY package*.json ./
14
 
15
- # Install dependencies
16
  RUN npm install
17
 
18
- # Copy app source
19
  COPY . .
20
 
21
- # Create non-root user
22
- RUN useradd -m -u 1000 botuser && chown -R botuser:botuser /app
23
- USER botuser
24
-
25
- # Expose port
26
  EXPOSE 7860
27
 
28
- # Health check
29
- HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
30
- CMD curl -f http://localhost:7860/health || exit 1
31
-
32
- # Start the app
33
- CMD ["npm", "start"]
 
1
  FROM node:18-slim
2
 
 
3
  RUN apt-get update && apt-get install -y \
4
  python3 \
5
  make \
 
8
 
9
  WORKDIR /app
10
 
 
11
  COPY package*.json ./
12
 
 
13
  RUN npm install
14
 
 
15
  COPY . .
16
 
 
 
 
 
 
17
  EXPOSE 7860
18
 
19
+ CMD ["npm", "start"]