feat: 切换至bun

This commit is contained in:
zhaoyingbo 2023-09-28 09:15:19 +00:00
parent 56391a68f7
commit 0b7822be52
6 changed files with 10 additions and 8 deletions

View File

@ -1,8 +1,8 @@
{
"name": "egg_server",
"image": "micr.cloud.mioffice.cn/zhaoyingbo/dev:18.14.2",
"remoteUser": "node",
"containerUser": "node",
"image": "micr.cloud.mioffice.cn/zhaoyingbo/dev:bun",
"remoteUser": "bun",
"containerUser": "bun",
"forwardPorts": [3000],
"customizations": {
"vscode": {

View File

@ -1 +1 @@
echo "alias dev=\"cd /workspaces/egg_server && yarn dev\"" >> /home/node/.bashrc
echo "alias dev=\"cd /workspaces/egg_server && bun run dev\"" >> /home/bun/.bashrc

1
.dockerignore Normal file
View File

@ -0,0 +1 @@
view

1
.gitattributes vendored Normal file
View File

@ -0,0 +1 @@
*.lockb binary diff=lockb

View File

@ -1,4 +1,4 @@
FROM micr.cloud.mioffice.cn/zhaoyingbo/node:18.17.1-alpine3.18
FROM micr.cloud.mioffice.cn/zhaoyingbo/bun:alpine
RUN apk update \
&& apk add tzdata \
@ -9,12 +9,12 @@ WORKDIR /app
COPY package*.json ./
COPY yarn.lock ./
COPY bun.lockb ./
RUN yarn
RUN bun install
COPY . .
EXPOSE 3000
CMD ["yarn", "start"]
CMD ["bun", "run", "start"]

BIN
bun.lockb Executable file

Binary file not shown.