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