Finishing touches?
This commit is contained in:
@@ -15,10 +15,10 @@ ENV NODE_ENV development
|
||||
ENV NPM_TOKEN $NPM_TOKEN
|
||||
WORKDIR /home/node/app
|
||||
COPY .npmrc /root
|
||||
COPY .yarnrc.build.yml /root/.yarnrc.yml
|
||||
COPY lib package*.json tsconfig.json yarn.lock ./
|
||||
COPY .build.yarnrc.yml /root/.yarnrc.yml
|
||||
COPY . .
|
||||
RUN yarn set version stable && yarn install
|
||||
RUN yarn build
|
||||
RUN yarn build:production
|
||||
|
||||
## this is stage two , where the app actually runs
|
||||
FROM node:20-bullseye-slim AS containerize
|
||||
@@ -30,6 +30,6 @@ COPY .npmrc /root
|
||||
COPY .build.yarnrc.yml /root/.yarnrc.yml
|
||||
COPY package*.json yarn.lock ./
|
||||
RUN yarn set version stable && yarn install && yarn cache clean
|
||||
COPY --from=build /home/node/app/dist .
|
||||
COPY --from=build /home/node/app/dist ./
|
||||
EXPOSE $PORT
|
||||
CMD ["node","index.js"]
|
||||
|
||||
Reference in New Issue
Block a user