Due to a new npm package I installed I recently started to receive SyntaxErrors concerning the use of the keyword 'const'.
After some research, I came across this topic on StackOverflow, saying that ECMAScript2015 isn't enabled by default on the older Node.js
As I'm using Docker to host my web application, I'm wondering how to include harmony-tag into the Dockerfile:
FROM centos:centos6
RUN yum install -y epel-release
RUN yum install -y nodejs npm
COPY package.json /ProjectName/package.json
# Set the working directory
WORKDIR /ProjectName
RUN npm install --production
COPY . /ProjectName
EXPOSE 8080
CMD ["npm", "start"]
Or do you consider another solution?
Thanks