diff --git a/Dockerfile b/Dockerfile index 5d7e179..aaece19 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,17 +1,26 @@ -FROM python:3-alpine +FROM python:3-slim WORKDIR /app COPY requirements.txt . -RUN apk add --update nodejs npm cmake\ +RUN apt-get update && apt-get install -y \ + gcc \ + g++ \ + make \ + cmake \ + pkg-config \ + libffi-dev \ && pip3 install --no-cache-dir -r requirements.txt \ - && rm -rf /var/cache/apk/* + && apt-get clean \ + && rm -rf /var/cache/apk/* \ + && rm -rf /var/lib/apt/lists/* COPY . . -ENV FILE = config/docker-config.yaml +ENV FILE=config/docker-config.yaml EXPOSE 8080 -CMD uvicorn --host 0.0.0.0 --port $(port) main:app \ No newline at end of file +CMD uvicorn --host 0.0.0.0 --port $(port) main:app +