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
|
- image
|
||||||
|
|
||||||
.img: &img
|
.img: &img
|
||||||
image: "domaindrivenarchitecture/ddadevops-dind:4.10.0"
|
image: "domaindrivenarchitecture/ddadevops-dind:4.10.5"
|
||||||
services:
|
services:
|
||||||
- docker:dind
|
- docker:dind
|
||||||
before_script:
|
before_script:
|
||||||
|
@ -16,7 +16,7 @@ stages:
|
||||||
- export IMAGE_TAG=$CI_COMMIT_TAG
|
- export IMAGE_TAG=$CI_COMMIT_TAG
|
||||||
|
|
||||||
.cljs-job: &cljs
|
.cljs-job: &cljs
|
||||||
image: "domaindrivenarchitecture/ddadevops-clj-cljs:4.10.0"
|
image: "domaindrivenarchitecture/ddadevops-clj-cljs:4.10.5"
|
||||||
cache:
|
cache:
|
||||||
key: ${CI_COMMIT_REF_SLUG}
|
key: ${CI_COMMIT_REF_SLUG}
|
||||||
paths:
|
paths:
|
||||||
|
@ -29,7 +29,7 @@ stages:
|
||||||
- npm install
|
- npm install
|
||||||
|
|
||||||
.clj-job: &clj
|
.clj-job: &clj
|
||||||
image: "domaindrivenarchitecture/ddadevops-clj-cljs:4.10.0"
|
image: "domaindrivenarchitecture/ddadevops-clj-cljs:4.10.5"
|
||||||
cache:
|
cache:
|
||||||
key: ${CI_COMMIT_REF_SLUG}
|
key: ${CI_COMMIT_REF_SLUG}
|
||||||
paths:
|
paths:
|
||||||
|
|
|
@ -3,9 +3,9 @@ FROM node:20.10.0-bookworm-slim
|
||||||
|
|
||||||
WORKDIR /excalidraw-backend
|
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 80
|
||||||
EXPOSE 9090
|
EXPOSE 9090
|
||||||
|
|
|
@ -3,15 +3,14 @@ set -exo pipefail
|
||||||
|
|
||||||
function main() {
|
function main() {
|
||||||
{
|
{
|
||||||
apt-get update
|
upgradeSystem
|
||||||
apt-get -qqy upgrade
|
|
||||||
} > /dev/null
|
} > /dev/null
|
||||||
|
|
||||||
cleanupDocker
|
cleanupDocker
|
||||||
}
|
}
|
||||||
|
|
||||||
source ./install_functions.sh
|
source ./install_functions_debian.sh
|
||||||
main
|
DEBIAN_FRONTEND=noninteractive DEBCONF_NOWARNINGS=yes main
|
||||||
|
|
||||||
npm ci --omit=dev
|
npm ci --omit=dev
|
||||||
npm run build
|
npm run build
|
||||||
|
|
|
@ -2,4 +2,4 @@ FROM jitsi/web:stable-9111
|
||||||
|
|
||||||
# Prepare Configuration
|
# Prepare Configuration
|
||||||
ADD resources /tmp
|
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() {
|
function main() {
|
||||||
{
|
{
|
||||||
apt-get update
|
upgradeSystem
|
||||||
apt-get -qqy upgrade
|
|
||||||
} > /dev/null
|
} > /dev/null
|
||||||
|
|
||||||
install -m 0700 /tmp/install-debug.sh /usr/local/bin/
|
install -m 0700 /tmp/install-debug.sh /usr/local/bin/
|
||||||
|
@ -14,5 +13,5 @@ function main() {
|
||||||
cleanupDocker
|
cleanupDocker
|
||||||
}
|
}
|
||||||
|
|
||||||
source /tmp/install_functions.sh
|
source /tmp/install_functions_debian.sh
|
||||||
main
|
DEBIAN_FRONTEND=noninteractive DEBCONF_NOWARNINGS=yes main
|
Loading…
Reference in a new issue