-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (21 loc) · 674 Bytes
/
Copy pathDockerfile
File metadata and controls
26 lines (21 loc) · 674 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 docker.io/library/alpine:3.24 AS packages
RUN apk upgrade --no-cache \
&& apk add --no-cache npm
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.24 AS final
RUN apk upgrade --no-cache \
&& apk add --no-cache nodejs \
&& addgroup -S -g 923 runner \
&& adduser -S -D -u 923 -G runner runner \
&& rm -f -- /etc/*-
WORKDIR /app
VOLUME /app/persist
COPY package.json ./
COPY --from=packages /build/node_modules ./node_modules
COPY locales locales
COPY source ./
USER runner
ENTRYPOINT ["node", "--enable-source-maps"]
CMD ["telegram-typescript-bot-template.ts"]