- I’m making an attempt to make use of Docker and udate nginx however the construct retains failing.
- I presently have two information. I’m making an attempt to only use the Docker file, any concepts? Btw, I noticed the the nginx half did not replace (within the construct, nonetheless reveals 1.10.3)
- the ‘growth’ env in Dockerfile makes me suppose that is only for native?
FROM node:11.12.0 RUN apt-get replace && apt-get set up -y nginx build-essential gyp libpng-dev bzip2 autoconf libtool nasm libvips-dev --no-install-recommends && mkdir -p /usr/src/app COPY ./bundle.json /usr/src/app/ WORKDIR /usr/src/app/ RUN npm set up -g node-gyp
I WANT TO REMOVE THIS AND JUSt ADD IT TO THE DOCKER FILE….
FROM gcr.io/SITE/base:11.12.0 // <-- REMOVE THIS AND ADD THE docker-base/Docker data right here... nevertheless it did not work. ARG NODE_ENV='manufacturing' ARG CLIENT_HOST='cdn.mysite.com' ARG PORT='80' ARG HOST='www.mysite.com' ARG API_HOST='api.mysite.com' ARG API2_HOST='api2.mysite.com' ARG PROTOCOL='https' ENV NODE_ENV $NODE_ENV ENV CLIENT_HOST $CLIENT_HOST ENV PROTOCOL $PROTOCOL ENV API2_HOST $API2_HOST ENV API_HOST $API_HOST ENV HOST $HOST ENV PORT $PORT RUN apt-get replace && apt-get set up -y libvips-dev --no-install-recommends COPY bundle.json /usr/src/app/ WORKDIR /usr/src/app/ RUN NODE_ENV=growth npm set up COPY . /usr/src/app RUN npm run construct EXPOSE 80 CMD ["sh", "run_app.sh"]
From what I collect, a picture is created from the docker-base/Docker file.. and that then is inserted into the Docker file… BUT I do not want that picture or that course of… I wish to summarize all of it within the Dockerfile.
Any concepts? I attempted to replace to a more moderen model of node stretch, however the nginx would not replace and the construct failed. Any concepts on combining the 2 within the Dockerfile and updating node and nginx?