Commit 945f694d authored by server2's avatar server2
Browse files

KHANHQ: Update docker and env

parent cd31351c
# syntax=docker/dockerfile:1.3
FROM ubuntu:22.04
ENV DEBIAN_FRONTEND=noninteractive \
USER=root \
TZ=Asia/Ho_Chi_Minh
RUN apt-get update && apt-get install -y \
python3.10 \
python3-pip \
python3-dev \
git \
build-essential
COPY requirements.txt requirements.txt
RUN python3 -m pip install --upgrade pip \
&& python3 -m pip install -r requirements.txt
COPY . /app
WORKDIR /app
\ No newline at end of file
version: "3.9"
services:
openai-service:
image: openai-service
build:
context: .
dockerfile: Dockerfile
volumes:
- ./:/app
- ./logs:/app/logs
command: python3 main.py
environment:
- OPENAI_API_KEY=${OPENAI_API_KEY}
- RABBITMQ_HOST=${RABBITMQ_HOST}
- RABBITMQ_PORT=${RABBITMQ_PORT}
- RABBITMQ_VIRTUAL_HOST=${RABBITMQ_VIRTUAL_HOST}
- RABBITMQ_USERNAME=${RABBITMQ_USERNAME}
- RABBITMQ_PASSWORD=${RABBITMQ_PASSWORD}
- RABBITMQ_DURABLE=${RABBITMQ_DURABLE}
- MINIO_DOMAIN=${MINIO_DOMAIN}
- MINIO_HOST=${MINIO_HOST}
- MINIO_ACCESS_KEY=${MINIO_ACCESS_KEY}
- MINIO_SECRET_KEY=${MINIO_SECRET_KEY}
- MINIO_PART_SIZE=${MINIO_PART_SIZE}
- MINIO_DEFAULT_BUCKETS=${MINIO_DEFAULT_BUCKETS}
tty: true
restart: always
\ No newline at end of file
openai==1.107.1
certifi==2024.2.2
cffi==1.16.0
......@@ -27,7 +26,7 @@ SQLAlchemy==2.0.23
openai>=1.0.0
openai
pydantic>=2.0.0
python-dotenv>=1.0.0
requests>=2.28.0
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment