mirror of
https://github.com/AppFlowy-IO/AppFlowy-Web.git
synced 2025-11-30 19:37:55 +08:00
chore: update pnpm version in docker
This commit is contained in:
2
.github/workflows/web_docker.yml
vendored
2
.github/workflows/web_docker.yml
vendored
@@ -85,4 +85,4 @@ jobs:
|
||||
with:
|
||||
inputs: ${{ env.IMAGE_NAME }}:latest
|
||||
images: ${{ env.IMAGE_NAME }}:latest-linux-amd64,${{ env.IMAGE_NAME }}:latest-linux-arm64
|
||||
push: true
|
||||
push: true
|
||||
|
||||
6
.github/workflows/web_docker_manual.yml
vendored
6
.github/workflows/web_docker_manual.yml
vendored
@@ -115,7 +115,7 @@ jobs:
|
||||
# Get architectures and create image list
|
||||
archs="${{ github.event.inputs.archs }}"
|
||||
IMAGE_LIST=""
|
||||
|
||||
|
||||
# Convert architectures to image tags
|
||||
IFS=',' read -ra ARCH_ARRAY <<< "$archs"
|
||||
for arch in "${ARCH_ARRAY[@]}"; do
|
||||
@@ -125,7 +125,7 @@ jobs:
|
||||
fi
|
||||
IMAGE_LIST="${IMAGE_LIST}${{ env.IMAGE_NAME }}:test-${{ env.IMAGE_TAG }}-${platform_pair}"
|
||||
done
|
||||
|
||||
|
||||
echo "image_list=${IMAGE_LIST}" >> $GITHUB_OUTPUT
|
||||
echo "latest_list=${IMAGE_LIST//test-${{ env.IMAGE_TAG }}/test-latest}" >> $GITHUB_OUTPUT
|
||||
|
||||
@@ -141,4 +141,4 @@ jobs:
|
||||
with:
|
||||
inputs: ${{ env.IMAGE_NAME }}:test-latest
|
||||
images: ${{ steps.generate-manifest.outputs.latest_list }}
|
||||
push: true
|
||||
push: true
|
||||
|
||||
@@ -5,16 +5,14 @@ WORKDIR /app
|
||||
|
||||
ARG VERSION=main
|
||||
|
||||
RUN npm install -g pnpm@10.9.0
|
||||
COPY . .
|
||||
RUN corepack enable
|
||||
RUN pnpm install
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN sed -i 's|https://test.appflowy.cloud||g' src/components/main/app.hooks.ts
|
||||
RUN pnpm run build
|
||||
|
||||
FROM nginx:alpine
|
||||
COPY --from=builder /app/dist /usr/share/nginx/html/
|
||||
|
||||
# Copy nginx.conf from docker folder
|
||||
COPY docker/nginx.conf /etc/nginx/nginx.conf
|
||||
COPY --from=builder /app/docker/nginx.conf /etc/nginx/nginx.conf
|
||||
|
||||
Reference in New Issue
Block a user