Commit fb0beac4 by nabil el mahiri

new clean docker file

parent 167991dc
Pipeline #484 failed with stages
in 5 minutes 33 seconds
......@@ -6,14 +6,13 @@ ARG SSH_PRIVATE_KEY
ARG BUILD_TOKEN
ARG DEPLOY_TOKEN
RUN apt-get update && \
apt-get -y dist-upgrade
RUN DEBIAN_FRONTEND=noninteractive apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get -y dist-upgrade
# Installing supervisord
RUN apt-get install -y supervisor && \
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y supervisor && \
apt-get install -y gnupg2 && \
apt-get install -yq ssh && \
apt-get install -yq tree && \
apt-get install -y openssh-server && \
apt-get install -yq redis-server
......@@ -21,7 +20,7 @@ apt-get install -yq redis-server
ADD ./docker/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
# install nginx
RUN apt-get -yq install net-tools nginx lsb-release
RUN DEBIAN_FRONTEND=noninteractive apt-get -yq install net-tools nginx lsb-release
RUN rm -f /etc/nginx/fastcgi.conf /etc/nginx/fastcgi_params && \
rm -f /etc/nginx/snippets/fastcgi-php.conf /etc/nginx/snippets/snakeoil.conf && \
......@@ -81,7 +80,6 @@ WORKDIR /atlasvoyages
COPY ./sh /atlasvoyages/sh
RUN tree ./
# RUN login automatiquely to npm
RUN expect -f ./sh/npm_login_expect nabilelmahiri arigatou@65 "nabil.elmahiri@fractalite.com"
......@@ -89,9 +87,9 @@ COPY package*.json /atlasvoyages/
# RUN include deploy token in gitlab urls in each of the modules
RUN sed -i 's/git+ssh:\/\/git@labs.atlasvoyages.com:/git+http:\/\/gitlab-ci-token:'$DEPLOY_TOKEN'@labs.atlasvoyages.com\//' ./package.json
# RUN sed -i 's/git+ssh:\/\/git@labs.atlasvoyages.com:/git+http:\/\/gitlab-ci-token:'$DEPLOY_TOKEN'@labs.atlasvoyages.com\//' ./package.json
# RUN npm install --unsafe-perm=true
RUN npm install --unsafe-perm=true
COPY ./ /atlasvoyages/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment