mirror of
https://gitee.com/dify_ai/dify.git
synced 2024-12-03 03:38:08 +08:00
cd51d3323b
Co-authored-by: John Wang <takatost@gmail.com>
30 lines
534 B
Docker
30 lines
534 B
Docker
FROM langgenius/base:1.0.0-bullseye-slim
|
|
|
|
LABEL maintainer="takatost@gmail.com"
|
|
|
|
ENV EDITION SELF_HOSTED
|
|
ENV DEPLOY_ENV PRODUCTION
|
|
ENV CONSOLE_API_URL http://127.0.0.1:5001
|
|
ENV APP_API_URL http://127.0.0.1:5001
|
|
|
|
EXPOSE 3000
|
|
|
|
WORKDIR /app/web
|
|
|
|
COPY package.json /app/web/package.json
|
|
|
|
RUN npm install --only=prod
|
|
|
|
COPY . /app/web/
|
|
|
|
RUN npm run build
|
|
|
|
COPY docker/pm2.json /app/web/pm2.json
|
|
COPY docker/entrypoint.sh /entrypoint.sh
|
|
RUN chmod +x /entrypoint.sh
|
|
|
|
ARG COMMIT_SHA
|
|
ENV COMMIT_SHA ${COMMIT_SHA}
|
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|