-
Notifications
You must be signed in to change notification settings - Fork 117
/
Dockerfile
20 lines (14 loc) · 722 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Use node:alpine3.17 image as the base image
FROM docker.io/node:alpine3.17
# Maintainer information
MAINTAINER [email protected]
# Copy the vue-color-avatar file from the local directory to the /app directory inside the container
COPY . /app
# Expose port 3000 of the container and allow external access to this port
EXPOSE 3000
# Change the working directory to /app
WORKDIR /app
# 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 && 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
CMD yarn dev