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,20 +1,20 @@
FROM node:lts-alpine as base
WORKDIR /base
COPY ./package.json ./package.json
RUN npm install
RUN yarn install
COPY ./ ./
FROM base AS dev
ENV NODE_ENV=development
EXPOSE 3000
CMD ["npm", "run", "dev"]
CMD ["yarn","dev"]
FROM base AS build
ENV NODE_ENV=production
WORKDIR /build
COPY --from=base /base ./
ADD "https://random-uuid.deno.dev" skipcache
RUN npm run build
RUN yarn build
FROM nginx:stable AS prod
COPY --from=build /build/dist /usr/share/nginx/html