Skip to content

A dockerfile and a Compose to launch it #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
msansen-esncf opened this issue Jun 28, 2024 · 0 comments
Open

A dockerfile and a Compose to launch it #4

msansen-esncf opened this issue Jun 28, 2024 · 0 comments

Comments

@msansen-esncf
Copy link

msansen-esncf commented Jun 28, 2024

Hi,

please find a way to launch it on docker :

FROM rust:latest
WORKDIR /usr/bin
RUN apk add musl-dev
RUN cargo install dify-openai-apis
CMD ["dify-openai-apis"]

to build the image:
docker build --pull --rm -f "dockerfile.dockerfile" -t difyopenaiapis:0.1.8 "."

and a compose.yaml to launch it:

  difyopenaiapis:
    image: "difyopenaiapis:0.1.8"
    container_name: difyopenaiapis
    environment:
      HOST: 0.0.0.0
      PORT: 3000
      DIFY_BASE_URL: "http://dify.api.to"
      DIFY_API_KEY: "app-******"
      DIFY_TIMEOUT: 20
      WORKERS_NUM: 4
      RUST_LOG: "debug"
    ports:
      - '8080:3000'
    restart: "always"

Regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant