Skip to content
This repository has been archived by the owner on Nov 21, 2020. It is now read-only.

Commit

Permalink
perf(docker): upgrade dockerfile nodejs version
Browse files Browse the repository at this point in the history
  • Loading branch information
munkhorgil committed May 14, 2020
1 parent 15e498a commit 5e7ea88
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
12 changes: 11 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
FROM erxes/runner:latest
FROM node:12.16.3-slim
ARG DEBIAN_FRONTEND=noninteractive

RUN apt-get update && \
apt-get install -y gnupg2 && \
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2930ADAE8CAF5059EE73BB4B58712A2291FA4AD5 && \
echo "deb http://repo.mongodb.org/apt/debian stretch/mongodb-org/3.6 main" | tee /etc/apt/sources.list.d/mongodb-org-3.6.list
RUN apt-get update && \
apt-get install -y \
rsync python build-essential mongodb-org-shell mongodb-org-tools && \
rm -rf /var/lib/apt/lists/*
WORKDIR /erxes-api/
RUN chown -R node:node /erxes-api
COPY --chown=node:node . /erxes-api
Expand Down
2 changes: 1 addition & 1 deletion email-verifier/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:10.16.0-slim
FROM node:12.16.3-slim
WORKDIR /erxes-email-verifier
RUN chown -R node:node /erxes-email-verifier
COPY --chown=node:node . /erxes-email-verifier
Expand Down
2 changes: 1 addition & 1 deletion engages-email-sender/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:10.16.0-slim
FROM node:12.16.3-slim
WORKDIR /erxes-engages
RUN chown -R node:node /erxes-engages
COPY --chown=node:node . /erxes-engages
Expand Down
2 changes: 1 addition & 1 deletion logger/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:10.16.0-slim
FROM node:12.16.3-slim
WORKDIR /erxes-logger/
RUN chown -R node:node /erxes-logger
COPY --chown=node:node . /erxes-logger
Expand Down

0 comments on commit 5e7ea88

Please sign in to comment.