-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
32 lines (25 loc) · 818 Bytes
/
Dockerfile
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
FROM docker.io/library/node:22-alpine AS builder
RUN apk upgrade --no-cache
WORKDIR /build
COPY package.json package-lock.json ./
RUN npm ci --no-audit --no-fund --no-update-notifier
COPY . ./
RUN node_modules/.bin/tsc
FROM docker.io/library/node:22-alpine AS packages
RUN apk upgrade --no-cache
WORKDIR /build
COPY package.json package-lock.json ./
RUN npm ci --no-audit --no-fund --no-update-notifier --omit=dev
FROM docker.io/library/alpine:3.21 AS final
RUN apk upgrade --no-cache \
&& apk add --no-cache nodejs
ENV NODE_ENV=production
WORKDIR /app
VOLUME /app/sessions
COPY package.json ./
COPY --from=packages /build/node_modules ./node_modules
COPY locales locales
COPY wikidata-items.yaml ./
COPY --from=builder /build/dist ./
ENTRYPOINT ["node", "--enable-source-maps"]
CMD ["bastion-siege-clone.js"]