Revert "Switch to npm"

This reverts commit ce5bf1edf0.
This commit is contained in:
Max Schmidt
2023-07-28 17:02:19 +02:00
parent a51b72d7b5
commit 27dfaa8f6a
15 changed files with 11095 additions and 19204 deletions

View File

@ -1,29 +1,29 @@
FROM node:lts-alpine as base
WORKDIR /base
COPY ./package.json .
RUN npm install
RUN yarn install
COPY . .
FROM base AS dev
ENV NODE_ENV=development
EXPOSE 3001
CMD ["npm","run", "dev"]
CMD ["yarn","dev"]
FROM base AS build
ENV NODE_ENV=production
WORKDIR /build
COPY --from=base /base .
RUN npm run build
RUN yarn build
FROM build as prod
ENV NODE_ENV=production
WORKDIR /prod
COPY package*.json .
RUN npm install --production
RUN yarn install --production
COPY --from=build /build/tsconfig.json ./tsconfig.json
COPY --from=build /build/dist ./dist
COPY --from=build /build/build ./build
EXPOSE 3000
CMD ["npm", "run", "serve"]
CMD ["yarn", "serve"]