migrated to lightweight python-slim over ubuntu
All checks were successful
Build and Deploy Docker Image / build-and-push (push) Successful in 2m10s
All checks were successful
Build and Deploy Docker Image / build-and-push (push) Successful in 2m10s
This commit is contained in:
@@ -1,19 +1,12 @@
|
|||||||
|
FROM python:3.11-slim-bookworm
|
||||||
|
|
||||||
FROM ubuntu:22.04
|
|
||||||
# Install openbabel and python
|
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get install --yes --quiet --no-install-recommends \
|
&& apt-get install --yes --quiet --no-install-recommends \
|
||||||
python3 \
|
openbabel \
|
||||||
python3-pip \
|
|
||||||
&& apt-get clean && rm -rf /var/lib/apt/lists/*
|
&& apt-get clean && rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
WORKDIR /var/local
|
WORKDIR /var/local
|
||||||
|
|
||||||
COPY requirements.txt .
|
COPY requirements.txt .
|
||||||
|
RUN pip install --no-cache-dir -r requirements.txt
|
||||||
# Install dependencies
|
|
||||||
RUN /usr/bin/python3 -m pip install --no-cache-dir -r requirements.txt
|
|
||||||
|
|
||||||
COPY src .
|
COPY src .
|
||||||
|
|
||||||
CMD uvicorn app:app --host 0.0.0.0 --port ${PORT} --log-level warning
|
CMD uvicorn app:app --host 0.0.0.0 --port ${PORT} --log-level warning
|
||||||
|
|||||||
Reference in New Issue
Block a user