-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
42 lines (24 loc) · 867 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# builder stage (temp)
FROM python:3.8-slim as builder
WORKDIR /app
ENV PYTHONUNBUFFERED 1
RUN apt-get update && apt-get install -y --no-install-recommends python3-dev \
build-essential \
gcc
COPY requirements.txt ./
RUN pip wheel --no-cache-dir --no-deps --wheel-dir /app/wheels -r requirements.txt \
docanalysis
#final stage
FROM python:3.8-slim
WORKDIR /home/app
COPY --from=builder /app/wheels /wheels
COPY --from=builder /app/requirements.txt .
RUN pip install --no-cache /wheels/*
# RUN python -m spacy download en_core_web_lg
RUN apt-get update && apt-get install tk -y && apt-get install git -y
#RUN useradd --create-home --shell /bin/bash app_user
#USER app_user
COPY . .
#RUN docanalysis --help
CMD ["bash"]
#ENTRYPOINT [ "python", "./keyword_extraction_v2_test.py" ]