-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
39 lines (31 loc) · 1006 Bytes
/
Dockerfile
File metadata and controls
39 lines (31 loc) · 1006 Bytes
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
FROM tensorflow/tensorflow:1.13.2-gpu-py3
EXPOSE 80
ENV PORT 80
RUN apt-get update && \
apt-get install -y libsm6 libxext6 libxrender-dev nodejs npm git
# Commands will run in this directory
RUN mkdir /srv/app
RUN mkdir /srv/output
WORKDIR /srv/app
# # Install some Python stuffs.
# RUN apt-get update && \
# apt-get install -y python python-dev python-pip python-virtualenv nodejs npm && \
# rm -rf /var/lib/apt/lists/*
# Add build file
COPY ./package.json package.json
# Install dependencies and generate production dist
ARG NPM_TOKEN
COPY .npmrc-deploy .npmrc
RUN npm install
RUN rm -f .npmrc
RUN npm install forever -g
# RUN pip --version
RUN pip install opencv-python pytesseract
RUN git clone https://github.com/interviewBubble/Tabulo.git
RUN pip install -e Tabulo
RUN pip install --upgrade tensorflow==1.12.0
# Copy the code for the prod container.
# This seems to not cause any problems in dev when we mount a volume at this point.
COPY ./app app
COPY ./config config
CMD npm start