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
|
FROM node:14.15.3-alpine3.12
|
||||||
RUN apt-get update && apt-get install -y firefox-esr tesseract-ocr
|
|
||||||
WORKDIR /usr/src/app
|
WORKDIR /usr/src/app
|
||||||
COPY package*.json ./
|
|
||||||
RUN npm install lodash
|
|
||||||
RUN npm install
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
RUN apk update && \
|
||||||
|
apk add --no-cache firefox-esr tesseract-ocr && \
|
||||||
|
npm install lodash && \
|
||||||
|
npm install
|
||||||
EXPOSE 9005
|
EXPOSE 9005
|
||||||
CMD [ "npm", "start" ]
|
ENTRYPOINT [ "npm", "start" ]
|
||||||
|
|||||||
Reference in New Issue
Block a user