cartman/api/Dockerfile

11 lines
386 B
Text
Raw Normal View History

2023-02-09 18:05:05 -05:00
# syntax-docker/dockerfile:1
2023-02-10 19:25:30 -05:00
FROM alpine
2023-02-09 18:05:05 -05:00
WORKDIR /app
COPY requirements.txt requirements.txt
2023-02-10 19:25:30 -05:00
RUN apk add --no-cache --virtual build-deps py3-pip rust cargo g++ openssl-dev python3-dev
2023-02-10 17:18:18 -05:00
RUN pip install --no-cache-dir -r requirements.txt
2023-02-10 19:25:30 -05:00
RUN apk del build-deps
RUN rm -rf /var/cache/apk/*
2023-02-09 18:05:05 -05:00
COPY . .
CMD [ "uvicorn", "chatbots:api", "--proxy-headers", "--host", "0.0.0.0", "--port", "8000"]