revert dockerfile to yarn due to bun incompability

This commit is contained in:
CDN18 2024-11-28 16:00:46 +08:00
parent f4102db5ea
commit b9f3ab5692
Signed by: CDN
GPG key ID: 0C656827F9F80080

View file

@ -1,8 +1,8 @@
FROM oven/bun:alpine
FROM node:alpine
USER node
WORKDIR /app
COPY . .
RUN apk add --no-cache python3 build-base && \
bun install && \
bun run build
RUN yarn install && \
yarn build
EXPOSE 3000
CMD ["bun", "run", "start"]
CMD ["yarn", "start"]