Make starter project delivery-ready
This commit is contained in:
1 parent
5b300dee0d
commit
d7bfde754b
22 files changed
+695
-71
No files matched your search
+23
@@ -0,0 +1,23 @@
|
||||
FROM node:22-alpine AS build
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN corepack enable
|
||||
|
||||
COPY package.json pnpm-lock.yaml pnpm-workspace.yaml tsconfig.base.json ./
|
||||
COPY packages ./packages
|
||||
COPY apps ./apps
|
||||
COPY templates ./templates
|
||||
|
||||
RUN pnpm install --frozen-lockfile
|
||||
ARG APP_FILTER=@dev-screen-starter/demo-screen
|
||||
RUN pnpm --filter ${APP_FILTER:-@dev-screen-starter/demo-screen} build
|
||||
|
||||
FROM nginx:1.27-alpine
|
||||
|
||||
ARG APP_PATH=apps/demo-screen
|
||||
|
||||
COPY deploy/nginx.conf /etc/nginx/conf.d/default.conf
|
||||
COPY --from=build /app/${APP_PATH}/dist /usr/share/nginx/html
|
||||
|
||||
EXPOSE 80
|
||||
Reference in new issue
Block a user