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 ...@@ -6,14 +6,13 @@ ARG SSH_PRIVATE_KEY
ARG BUILD_TOKEN ARG BUILD_TOKEN
ARG DEPLOY_TOKEN ARG DEPLOY_TOKEN
RUN apt-get update && \ RUN DEBIAN_FRONTEND=noninteractive apt-get update && \
apt-get -y dist-upgrade DEBIAN_FRONTEND=noninteractive apt-get -y dist-upgrade
# Installing supervisord # 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 -y gnupg2 && \
apt-get install -yq ssh && \ apt-get install -yq ssh && \
apt-get install -yq tree && \
apt-get install -y openssh-server && \ apt-get install -y openssh-server && \
apt-get install -yq redis-server apt-get install -yq redis-server
...@@ -21,7 +20,7 @@ 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 ADD ./docker/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
# install nginx # 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 && \ RUN rm -f /etc/nginx/fastcgi.conf /etc/nginx/fastcgi_params && \
rm -f /etc/nginx/snippets/fastcgi-php.conf /etc/nginx/snippets/snakeoil.conf && \ rm -f /etc/nginx/snippets/fastcgi-php.conf /etc/nginx/snippets/snakeoil.conf && \
...@@ -81,7 +80,6 @@ WORKDIR /atlasvoyages ...@@ -81,7 +80,6 @@ WORKDIR /atlasvoyages
COPY ./sh /atlasvoyages/sh COPY ./sh /atlasvoyages/sh
RUN tree ./
# RUN login automatiquely to npm # RUN login automatiquely to npm
RUN expect -f ./sh/npm_login_expect nabilelmahiri arigatou@65 "nabil.elmahiri@fractalite.com" RUN expect -f ./sh/npm_login_expect nabilelmahiri arigatou@65 "nabil.elmahiri@fractalite.com"
...@@ -89,9 +87,9 @@ COPY package*.json /atlasvoyages/ ...@@ -89,9 +87,9 @@ COPY package*.json /atlasvoyages/
# RUN include deploy token in gitlab urls in each of the modules # 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/ 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