-
Notifications
You must be signed in to change notification settings - Fork 385
Expand file tree
/
Copy pathDockerfile.alpine
More file actions
37 lines (29 loc) · 899 Bytes
/
Dockerfile.alpine
File metadata and controls
37 lines (29 loc) · 899 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
FROM node:22-alpine as builder
WORKDIR /app
# RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
# RUN unzip awscliv2.zip
# RUN ./aws/install
COPY package*.json ./
RUN npm ci
RUN npm install --omit=dev \
@deepstream/cache-redis \
# @deepstream/cache-memcached \
# @deepstream/cache-hazelcast \
@deepstream/clusternode-redis \
@deepstream/storage-mongodb \
@deepstream/storage-rethinkdb \
@deepstream/storage-elasticsearch \
@deepstream/storage-postgres \
@deepstream/logger-winston \
@deepstream/plugin-aws
RUN npm uninstall --save uWebSockets.js
COPY . .
RUN npm run tsc
FROM node:22-alpine
WORKDIR /usr/local/deepstream
COPY --from=builder /app/node_modules/ ./node_modules
COPY --from=builder /app/dist/ .
EXPOSE 6020
EXPOSE 8080
EXPOSE 9229
CMD ["node", "./bin/deepstream.js", "start", "--inspect=0.0.0.0:9229"]