Merge pull request #23 from Octopus136/main

Change the Yarn registry becasue of the expired certificates.
This commit is contained in:
LeoKu 2024-03-16 09:56:25 +08:00 committed by GitHub
commit 39891b897e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8461 additions and 8461 deletions

View File

@ -1,26 +1,26 @@
# Use node as the builder image
FROM docker.io/node:alpine3.17 as builder
# Copy the vue-color-avatar file from the local directory to the /app directory inside the container
COPY . /app
# 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
# Building the html code
RUN yarn build
# Using nginx for production
FROM docker.io/nginxinc/nginx-unprivileged:1.25.1-alpine
# Showing that port 8080 can be published
EXPOSE 8080
# Maintainer information
MAINTAINER tanwenyang@aliyun.com
# Copy html from previous stage
COPY --from=builder /app/dist /usr/share/nginx/html
# Use node as the builder image
FROM docker.io/node:alpine3.17 as builder
# Copy the vue-color-avatar file from the local directory to the /app directory inside the container
COPY . /app
# 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.npmmirror.com' && yarn install && yarn cache clean
# Building the html code
RUN yarn build
# Using nginx for production
FROM docker.io/nginxinc/nginx-unprivileged:1.25.1-alpine
# Showing that port 8080 can be published
EXPOSE 8080
# Maintainer information
MAINTAINER tanwenyang@aliyun.com
# Copy html from previous stage
COPY --from=builder /app/dist /usr/share/nginx/html

16870
yarn.lock

File diff suppressed because it is too large Load Diff