Commit 8fda0c3c authored by Konstantin Schulz's avatar Konstantin Schulz
Browse files

added .dockerignore file to speed up Docker builds

parent 24af649a
Pipeline #10762 passed with stage
in 6 minutes and 11 seconds
/node_modules
......@@ -10,18 +10,20 @@ RUN apt update
RUN wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
RUN apt install -y ./google-chrome-stable_current_amd64.deb
COPY . mc_frontend
COPY nginx.conf /etc/nginx/nginx.conf
RUN install -Dv /dev/null /run/nginx/nginx.pid
WORKDIR /home/mc/mc_frontend
COPY package.json .
# to get the version of the local CLI package, run: npm list @angular/cli | sed 's/[^0-9.]*//g' | sed -n 2p
RUN npm i -g cordova @ionic/cli @angular/cli
RUN cordova telemetry off
# this makes the analytics prompt during upcoming "npm install" disappear, so this can also run in CI
RUN ng analytics off
RUN npm install
COPY . .
COPY nginx.conf /etc/nginx/nginx.conf
RUN install -Dv /dev/null /run/nginx/nginx.pid
# workaround to fix the missing binding issue for node-sass
RUN npm rebuild node-sass
# TODO: for some reason, this does not persist?!?!??!
......
......@@ -13,8 +13,9 @@ services:
restart: always
stdin_open: true
tty: true
volumes:
- .:/home/mc/mc_frontend
# do not use mounted volume in combination with the node_modules directory being ignored in .dockerignore
# volumes:
# - .:/home/mc/mc_frontend
networks:
default:
external:
......
{
"name": "mc_frontend",
"version": "1.6.8",
"version": "1.6.9",
"author": "Ionic Framework",
"homepage": "https://ionicframework.com/",
"scripts": {
......
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