-
-
Notifications
You must be signed in to change notification settings - Fork 281
/
Dockerfile.debian
39 lines (28 loc) · 1.11 KB
/
Dockerfile.debian
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
ARG VERSION=lts
FROM --platform=$BUILDPLATFORM node:$VERSION-bullseye as build
ENV PYTHONUNBUFFERED=1
COPY . /tmp/build
WORKDIR /tmp/build
RUN apt-get update -y ; \
apt-get upgrade -y ; \
apt-get install -y git python3 gcc wget ; \
npm ci ; \
npm run build ; \
npm ci --omit=dev --ignore-scripts ; \
npm prune --production ; \
rm -rf node_modules/*/test/ node_modules/*/tests/ ; \
npm install -g modclean ; \
modclean -n default:safe --run ; \
mkdir -p /app ; \
cp -r bin/ dist/ node_modules/ LICENSE package.json package-lock.json README.md /app/
FROM --platform=$TARGETPLATFORM node:$VERSION-bullseye-slim
LABEL org.opencontainers.image.authors="Soketi <[email protected]>"
LABEL org.opencontainers.image.source="https://github.com/soketi/soketi"
LABEL org.opencontainers.image.url="https://soketi.app"
LABEL org.opencontainers.image.documentation="https://docs.soketi.app"
LABEL org.opencontainers.image.vendor="Soketi"
LABEL org.opencontainers.image.licenses="AGPL-3.0"
COPY --from=build /app /app
WORKDIR /app
EXPOSE 6001
ENTRYPOINT ["node", "/app/bin/server.js", "start"]