imseldrith commited on
Commit
660c2fc
·
verified ·
1 Parent(s): f7efad2

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -6
Dockerfile CHANGED
@@ -1,7 +1,7 @@
1
  FROM oven/bun:1.2.19-alpine AS builder
2
  WORKDIR /app
3
 
4
- COPY ./package.json ./bun.lock ./
5
  RUN bun install --frozen-lockfile
6
 
7
  COPY . .
@@ -10,16 +10,14 @@ RUN bun run build
10
  FROM oven/bun:1.2.19-alpine AS runner
11
  WORKDIR /app
12
 
13
- COPY ./package.json ./bun.lock ./
14
  RUN bun install --frozen-lockfile --production --ignore-scripts --no-cache
15
 
16
  COPY --from=builder /app/dist ./dist
17
 
18
- EXPOSE 4141
19
-
20
- HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \
21
- CMD wget --spider -q http://localhost:4141/ || exit 1
22
 
23
  COPY entrypoint.sh /entrypoint.sh
24
  RUN chmod +x /entrypoint.sh
 
25
  ENTRYPOINT ["/entrypoint.sh"]
 
1
  FROM oven/bun:1.2.19-alpine AS builder
2
  WORKDIR /app
3
 
4
+ COPY package.json bun.lock ./
5
  RUN bun install --frozen-lockfile
6
 
7
  COPY . .
 
10
  FROM oven/bun:1.2.19-alpine AS runner
11
  WORKDIR /app
12
 
13
+ COPY package.json bun.lock ./
14
  RUN bun install --frozen-lockfile --production --ignore-scripts --no-cache
15
 
16
  COPY --from=builder /app/dist ./dist
17
 
18
+ EXPOSE 7860
 
 
 
19
 
20
  COPY entrypoint.sh /entrypoint.sh
21
  RUN chmod +x /entrypoint.sh
22
+
23
  ENTRYPOINT ["/entrypoint.sh"]