Commit 40b24eb0 authored by Konstantin Schulz's avatar Konstantin Schulz

added mounted volume for version file

parent aa0abbf8
Pipeline #15843 failed with stages
in 1 second
......@@ -5,6 +5,7 @@ stages:
build:
stage: build
script:
- python3 update_version.py
- docker-compose build
ci_frontend:
stage: ci
......
python3 update_version.py
docker-compose build
docker-compose down
docker-compose up -d
......@@ -38,6 +38,7 @@ services:
stdin_open: true
volumes:
- ./mc_frontend/src/assets/h5p:/home/mc/h5p
- ./mc_frontend/src/version.ts:/home/mc/version.ts
nginx:
command: nginx -g "daemon off;"
image: nginx:alpine
......
FROM node:10.19.0-stretch
# python version in this container is 3.5.3
RUN useradd -ms /bin/bash mc
......@@ -17,8 +18,6 @@ RUN ng analytics off
RUN npm install
COPY . .
# python version in this container is 3.5.3
RUN python3 update_version.py
COPY ./config.xml ./www/config.xml
# workaround to fix the missing binding issue for node-sass
......
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