mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-14 08:45:56 +08:00
fix: yarn install command in web Dockerfile (#2084)
This commit is contained in:
parent
275973da8c
commit
f3323beaca
@ -1,16 +1,16 @@
|
|||||||
# base image
|
# base image
|
||||||
FROM node:20.11.0-alpine AS base
|
FROM node:20.11.0-alpine AS base
|
||||||
|
LABEL maintainer="takatost@gmail.com"
|
||||||
|
|
||||||
# install packages
|
# install packages
|
||||||
FROM base as packages
|
FROM base as packages
|
||||||
LABEL maintainer="takatost@gmail.com"
|
|
||||||
|
|
||||||
WORKDIR /app/web
|
WORKDIR /app/web
|
||||||
|
|
||||||
COPY package.json .
|
COPY package.json .
|
||||||
COPY yarn.lock .
|
COPY yarn.lock .
|
||||||
|
|
||||||
RUN yarn --only=prod
|
RUN yarn install --frozen-lockfile
|
||||||
|
|
||||||
|
|
||||||
# build resources
|
# build resources
|
||||||
@ -40,7 +40,6 @@ COPY --from=builder /app/web/.next/static ./.next/static
|
|||||||
|
|
||||||
|
|
||||||
COPY docker/entrypoint.sh ./entrypoint.sh
|
COPY docker/entrypoint.sh ./entrypoint.sh
|
||||||
RUN chmod +x ./entrypoint.sh
|
|
||||||
|
|
||||||
ARG COMMIT_SHA
|
ARG COMMIT_SHA
|
||||||
ENV COMMIT_SHA ${COMMIT_SHA}
|
ENV COMMIT_SHA ${COMMIT_SHA}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user