Skip to content
Snippets Groups Projects
Commit 7c15540a authored by René Schöne's avatar René Schöne
Browse files

CI docker build

parent 7e04bbf7
Branches
Tags
No related merge requests found
Pipeline #8711 failed
/src/data/
Dockerfile
.dockerignore
.gitlab-ci.yml
/rd-builder/
/.git/
# compiled output
/dist
/tmp
/out-tsc
/build
# dependencies
/node_modules
# IDEs and editors
/.idea
.project
.classpath
.c9/
*.launch
.settings/
*.sublime-workspace
# IDE - VSCode
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
# misc
/.sass-cache
/connect.lock
/coverage
/libpeerconnection.log
npm-debug.log
testem.log
/typings
# e2e
/e2e/*.js
/e2e/*.map
# System Files
.DS_Store
Thumbs.db
image: docker:latest
variables:
GIT_SUBMODULE_STRATEGY: recursive
IMG_NAME: "$CI_REGISTRY/jastadd/ragdoc-view:"
IMG_SUFFIX: "relations"
deploy:
stage: deploy
tags:
- docker
script:
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
- docker build -t "$IMG_NAME""$IMG_SUFFIX" .
- docker push "$IMG_NAME""$IMG_SUFFIX"
FROM node:15.6.0-buster
WORKDIR /ragdoc-view
ADD . /ragdoc-view/
RUN npm install
RUN npm install -g @angular/cli@11.1.1
VOLUME ["/data"]
VOLUME ["/dist"]
RUN chmod +x build-view.sh && ln -s /dist && cd src/ && ln -s /data
ENTRYPOINT ["./build-view.sh"]
#!/bin/sh
ng build --base-href . --delete-output-path=false
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment