fix: analytics build image

This commit is contained in:
wancat committed 2024-04-05 22:59:22 +08:00
1 parent 84e65c9ef6
commit ba69685ea2
4 files changed
+5 -11

No files matched your search

+1 -8
View File
@@ -16,11 +16,4 @@ COPY packages/models ./packages/models
ENV NODE_ENV=production
WORKDIR /app/packages/analytics
RUN yarn build
CMD [ "yarn", "start" ]
# Development stage
FROM build as dev
RUN yarn install --frozen-lockfile
WORKDIR /app/packages/analytics
ENV NODE_ENV=development
CMD [ "yarn", "dev" ]
CMD [ "yarn", "start" ]