-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
39 lines (30 loc) · 826 Bytes
/
Dockerfile
File metadata and controls
39 lines (30 loc) · 826 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
33
34
35
36
37
38
39
# syntax=docker/dockerfile:1.7
FROM oven/bun:1
WORKDIR /app
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
git \
unzip \
curl \
ca-certificates \
chromium \
python3 \
make \
g++ \
npm \
&& npm install -g node-gyp \
&& rm -rf /var/lib/apt/lists/*
COPY package.json tsconfig.json app.ts ./
COPY src ./src
COPY plugins ./plugins
COPY install-mioku.ts ./install-mioku.ts
COPY docker ./docker
RUN --mount=type=cache,target=/root/.bun/install/cache bun install
RUN chmod +x ./docker/entrypoint.sh
RUN mkdir -p config data logs temp
ENV NODE_ENV=production
ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium
EXPOSE 3339
VOLUME ["/app/config", "/app/data", "/app/logs", "/app/temp", "/app/node_modules"]
ENTRYPOINT ["./docker/entrypoint.sh"]
CMD ["bun", "app.ts"]