20 lines
416 B
Plaintext
20 lines
416 B
Plaintext
|
|
FROM ubuntu:22.04
|
|
# Install openbabel dependencies
|
|
RUN apt-get update \
|
|
&& apt-get install --yes --quiet --no-install-recommends \
|
|
openbabel \
|
|
python3 \
|
|
python3-pip \
|
|
&& apt-get clean && rm -rf /var/lib/apt/lists/*
|
|
|
|
WORKDIR /var/local
|
|
|
|
COPY requirements.txt .
|
|
|
|
# Install dependencies
|
|
RUN /usr/bin/python3 -m pip install --no-cache-dir -r requirements.txt
|
|
|
|
COPY src .
|
|
|
|
CMD fastapi run app.py --port ${PORT} |