diff options
| author | Fuwn <[email protected]> | 2023-08-30 14:53:27 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2023-08-30 14:53:27 -0700 |
| commit | 2c6b9c2091ff76f07a6dbc4cd2c7d14298f3c9f5 (patch) | |
| tree | f111a2a5c86d4e7627a4bb068571152ee51487f5 /Dockerfile | |
| parent | revert(docker): builder image as node (diff) | |
| download | due.moe-2c6b9c2091ff76f07a6dbc4cd2c7d14298f3c9f5.tar.xz due.moe-2c6b9c2091ff76f07a6dbc4cd2c7d14298f3c9f5.zip | |
ci(docker): use bun through and through
Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -1,21 +1,21 @@ -FROM node:18.16-alpine as build +FROM oven/bun as build WORKDIR /due COPY package.json ./ -RUN yarn install +RUN bun install COPY ./ ./ -RUN yarn run build +RUN bun run build -FROM node:18.16-alpine +FROM oven/bun WORKDIR /due COPY --from=build /due . -EXPOSE 4173 +EXPOSE 3000 -CMD ["yarn", "run", "preview", "--", "--host", "0.0.0.0"]
\ No newline at end of file +CMD ["bun", "./build/index.js"]
\ No newline at end of file |