feat: 切换至bun
This commit is contained in:
parent
56391a68f7
commit
0b7822be52
@ -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": {
|
||||
|
@ -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
1
.dockerignore
Normal file
@ -0,0 +1 @@
|
||||
view
|
1
.gitattributes
vendored
Normal file
1
.gitattributes
vendored
Normal file
@ -0,0 +1 @@
|
||||
*.lockb binary diff=lockb
|
@ -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"]
|
Loading…
x
Reference in New Issue
Block a user