-
Notifications
You must be signed in to change notification settings - Fork 76
Expand file tree
/
Copy pathmonolyth.Dockerfile
More file actions
38 lines (25 loc) · 862 Bytes
/
monolyth.Dockerfile
File metadata and controls
38 lines (25 loc) · 862 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
38
FROM node:20-alpine
RUN apk add --update python3 make g++ linux-headers
RUN mkdir /app
RUN mkdir -p /app/apps/dev
RUN mkdir /app/packages
RUN mkdir /app/plugins
RUN mkdir /app/private-plugins
WORKDIR /app
COPY ./package.json ./package.json
# apps/dev
COPY ./apps/dev/package.json ./apps/dev/package.json
RUN sed -i '/frontend-react/d' ./apps/dev/package.json
COPY ./apps/dev/moleculer.config.js ./apps/dev/moleculer.config.js
# app
COPY ./packages /app/packages
COPY ./plugins /app/plugins
COPY ./private-plugins /app/private-plugins
RUN rm -rf plugins/*/frontend
RUN rm -rf private-plugins/*/frontend
# # install node deps
RUN yarn --cwd ./apps/dev install --production
RUN yarn --cwd ./apps/dev add nats jaeger-client --production
RUN yarn --production
EXPOSE 3000
CMD ["yarn", "--cwd", "./apps/dev", "leemons-runner", "services/**/*.service.js"]