-
-
Notifications
You must be signed in to change notification settings - Fork 52
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (20 loc) · 589 Bytes
/
Dockerfile
File metadata and controls
26 lines (20 loc) · 589 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
FROM oven/bun:1-alpine AS base
WORKDIR /app
FROM base AS install
COPY package.json bun.lock* ./
RUN bun install --frozen-lockfile --production
FROM base AS build
COPY package.json bun.lock* ./
RUN bun install --frozen-lockfile
COPY . .
RUN bun run build
FROM base AS release
RUN apk add --no-cache git ca-certificates gosu curl
COPY --from=install /app/node_modules ./node_modules
COPY --from=build /app/src ./src
COPY --from=build /app/package.json ./package.json
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENV PORT=4444
EXPOSE 4444
ENTRYPOINT ["/entrypoint.sh"]