Improvements docker image building
This commit is contained in:
parent
25a63ce0a9
commit
7a079de3a6
5 changed files with 12 additions and 14 deletions
|
@ -6,7 +6,7 @@ stages:
|
|||
- image
|
||||
|
||||
.img: &img
|
||||
image: "domaindrivenarchitecture/ddadevops-dind:4.10.0"
|
||||
image: "domaindrivenarchitecture/ddadevops-dind:4.10.5"
|
||||
services:
|
||||
- docker:dind
|
||||
before_script:
|
||||
|
@ -16,7 +16,7 @@ stages:
|
|||
- export IMAGE_TAG=$CI_COMMIT_TAG
|
||||
|
||||
.cljs-job: &cljs
|
||||
image: "domaindrivenarchitecture/ddadevops-clj-cljs:4.10.0"
|
||||
image: "domaindrivenarchitecture/ddadevops-clj-cljs:4.10.5"
|
||||
cache:
|
||||
key: ${CI_COMMIT_REF_SLUG}
|
||||
paths:
|
||||
|
@ -29,7 +29,7 @@ stages:
|
|||
- npm install
|
||||
|
||||
.clj-job: &clj
|
||||
image: "domaindrivenarchitecture/ddadevops-clj-cljs:4.10.0"
|
||||
image: "domaindrivenarchitecture/ddadevops-clj-cljs:4.10.5"
|
||||
cache:
|
||||
key: ${CI_COMMIT_REF_SLUG}
|
||||
paths:
|
||||
|
|
|
@ -3,9 +3,9 @@ FROM node:20.10.0-bookworm-slim
|
|||
|
||||
WORKDIR /excalidraw-backend
|
||||
|
||||
COPY resources/package.json resources/package-lock.json resources/tsconfig.json resources/install.sh resources/src resources/install_functions.sh ./
|
||||
COPY resources/package.json resources/package-lock.json resources/tsconfig.json resources/install.sh resources/src ./
|
||||
|
||||
RUN DEBIAN_FRONTEND=noninteractive DEBCONF_NOWARNINGS=yes ./install.sh
|
||||
RUN ./install.sh
|
||||
|
||||
EXPOSE 80
|
||||
EXPOSE 9090
|
||||
|
|
|
@ -3,15 +3,14 @@ set -exo pipefail
|
|||
|
||||
function main() {
|
||||
{
|
||||
apt-get update
|
||||
apt-get -qqy upgrade
|
||||
upgradeSystem
|
||||
} > /dev/null
|
||||
|
||||
cleanupDocker
|
||||
}
|
||||
|
||||
source ./install_functions.sh
|
||||
main
|
||||
source ./install_functions_debian.sh
|
||||
DEBIAN_FRONTEND=noninteractive DEBCONF_NOWARNINGS=yes main
|
||||
|
||||
npm ci --omit=dev
|
||||
npm run build
|
||||
|
|
|
@ -2,4 +2,4 @@ FROM jitsi/web:stable-9111
|
|||
|
||||
# Prepare Configuration
|
||||
ADD resources /tmp
|
||||
RUN DEBIAN_FRONTEND=noninteractive DEBCONF_NOWARNINGS=yes /tmp/install.sh
|
||||
RUN /tmp/install.sh
|
||||
|
|
|
@ -4,8 +4,7 @@ set -exo pipefail
|
|||
|
||||
function main() {
|
||||
{
|
||||
apt-get update
|
||||
apt-get -qqy upgrade
|
||||
upgradeSystem
|
||||
} > /dev/null
|
||||
|
||||
install -m 0700 /tmp/install-debug.sh /usr/local/bin/
|
||||
|
@ -14,5 +13,5 @@ function main() {
|
|||
cleanupDocker
|
||||
}
|
||||
|
||||
source /tmp/install_functions.sh
|
||||
main
|
||||
source /tmp/install_functions_debian.sh
|
||||
DEBIAN_FRONTEND=noninteractive DEBCONF_NOWARNINGS=yes main
|
Loading…
Reference in a new issue