mirror of
https://github.com/hexastack/hexabot
synced 2024-12-28 23:02:03 +00:00
22 lines
333 B
Docker
22 lines
333 B
Docker
FROM python:3.11.4
|
|
|
|
#
|
|
WORKDIR /app
|
|
|
|
#
|
|
COPY ./requirements.txt ./requirements.txt
|
|
|
|
# Update pip
|
|
RUN pip3 install --upgrade pip
|
|
|
|
# Install deps
|
|
RUN pip install --no-cache-dir --upgrade -r /app/requirements.txt
|
|
|
|
# Copy source code
|
|
COPY . .
|
|
|
|
EXPOSE 5000
|
|
|
|
# Entrypoint
|
|
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "5000"]
|