forked from yunusefendi52/distapp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (17 loc) · 687 Bytes
/
Dockerfile
File metadata and controls
25 lines (17 loc) · 687 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
FROM oven/bun:1.2.0 as builder
WORKDIR /builder
COPY package.json bun.lock /builder/
RUN bun install --frozen-lockfile
COPY . .
RUN bun run build --preset=bun
FROM oven/bun:1.2.0
WORKDIR /app
RUN apt-get update && \
apt-get install -y openjdk-11-jre-headless
RUN apt-get install -y unzip
RUN apt-get install -y curl
ARG DISTAPP_BUNDLETOOL_PATH=/app/bundletool.jar
ENV DISTAPP_BUNDLETOOL_PATH=${DISTAPP_BUNDLETOOL_PATH}
RUN [ -f ${DISTAPP_BUNDLETOOL_PATH} ] || curl -L -o ${DISTAPP_BUNDLETOOL_PATH} "https://github.com/google/bundletool/releases/download/1.17.2/bundletool-all-1.17.2.jar"
COPY --from=builder /builder/.output .
ENTRYPOINT [ "bun", "run", "server/index.mjs" ]