We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e2e25b commit ae1eeccCopy full SHA for ae1eecc
Dockerfile
@@ -1,8 +1,8 @@
1
-FROM public.ecr.aws/bitnami/node:18
2
-RUN apt-get install git
3
-ENV NODE_ENV=production
4
-RUN npm install -g typescript
+FROM node:18 AS builder
+RUN apt update -y && apt install git build-essential make python3 -y
+RUN npm install -g typescript @vercel/ncc
5
+ENV NODE_ENV=production
6
WORKDIR /app
7
COPY . .
8
WORKDIR /app/drift-common/protocol/sdk
@@ -14,7 +14,12 @@ RUN yarn build
14
15
RUN yarn
16
RUN yarn build
17
+RUN ncc build lib/index.js -o dist
18
19
+FROM node:18-alpine
20
+WORKDIR /app
21
+COPY --from=builder /app/dist/ dist/
22
23
EXPOSE 9464
24
-CMD [ "yarn", "start" ]
25
+CMD ["node", "./dist/index.js"]
0 commit comments