mirror of
https://github.com/qeeqbox/social-analyzer.git
synced 2021-05-13 03:10:39 +03:00
Optimized Dockerfile
This commit is contained in:
12
Dockerfile
12
Dockerfile
@@ -1,9 +1,9 @@
|
||||
FROM node:latest
|
||||
RUN apt-get update && apt-get install -y firefox-esr tesseract-ocr
|
||||
FROM node:14.15.3-alpine3.12
|
||||
WORKDIR /usr/src/app
|
||||
COPY package*.json ./
|
||||
RUN npm install lodash
|
||||
RUN npm install
|
||||
COPY . .
|
||||
RUN apk update && \
|
||||
apk add --no-cache firefox-esr tesseract-ocr && \
|
||||
npm install lodash && \
|
||||
npm install
|
||||
EXPOSE 9005
|
||||
CMD [ "npm", "start" ]
|
||||
ENTRYPOINT [ "npm", "start" ]
|
||||
|
||||
Reference in New Issue
Block a user