11 lines
290 B
Plaintext
11 lines
290 B
Plaintext
FROM python:3.8 as build
|
|
RUN apt-get update && apt-get install -y gcc
|
|
|
|
ADD app/requirements.txt /requirements.txt
|
|
RUN pip install -r requirements.txt
|
|
|
|
FROM python:3.8-slim
|
|
COPY --from=0 /usr/local/lib/python3.8/site-packages /usr/local/lib/python3.8/site-packages
|
|
ADD app /app
|
|
WORKDIR /app
|