mirror of
https://github.com/Codennnn/vue-color-avatar.git
synced 2024-12-22 12:02:38 +00:00
优化 docker 镜像大小
update dockerfile
This commit is contained in:
parent
e997e92de5
commit
97bb96f571
@ -14,7 +14,7 @@ EXPOSE 5173
|
|||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# Set the Yarn registry to Taobao mirror and install dependencies using yarn install
|
# Set the Yarn registry to Taobao mirror and install dependencies using yarn install
|
||||||
RUN yarn config set registry 'https://registry.npm.taobao.org' && yarn install
|
RUN yarn config set registry 'https://registry.npm.taobao.org' && yarn install && yarn cache clean
|
||||||
|
|
||||||
# Run the command to start the container, which will run the project in development mode and listen on port 5173 of address 0.0.0.0
|
# Run the command to start the container, which will run the project in development mode and listen on port 5173 of address 0.0.0.0
|
||||||
CMD yarn dev --host 0.0.0.0
|
CMD yarn dev --host 0.0.0.0
|
||||||
|
Loading…
Reference in New Issue
Block a user