Optimized Dockerfile

This commit is contained in:
Seth Falco
2021-01-03 08:01:28 +01:00
parent 8061b74992
commit 60989ea9e1

View File

@@ -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" ]