-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
51 lines (42 loc) · 1.87 KB
/
Dockerfile
File metadata and controls
51 lines (42 loc) · 1.87 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
ARG BASE_IMAGE_TAG=latest
FROM --platform=linux/amd64 ghcr.io/sillsdev/app-builders:${BASE_IMAGE_TAG} AS builder
FROM --platform=linux/amd64 phusion/baseimage:jammy-1.0.1
# Build arguments for versions (will be extracted from builder's versions.json)
ARG VERSION_SAB=""
ARG VERSION_RAB=""
ARG VERSION_DAB=""
ARG VERSION_KAB=""
LABEL maintainer="[email protected]" \
refreshed_at="2025-11-11" \
org.opencontainers.image.version_scriptureappbuilder="${VERSION_SAB}" \
org.opencontainers.image.version_readingappbuilder="${VERSION_RAB}" \
org.opencontainers.image.version_dictionaryappbuilder="${VERSION_DAB}" \
org.opencontainers.image.version_keyboardappbuilder="${VERSION_KAB}"
RUN apt-get update && apt-get install -y\
python3-apt\
python3-pycurl\
python3-pip\
ca-certificates\
busybox &&\
python3 -m pip install pip --upgrade pip &&\
pip install ansible &&\
apt-get clean && rm -rf /var/lib/apt/lists/* /var/cache/apt/*
RUN mkdir -p /app-builders
WORKDIR /app-builders
COPY --from=builder / /app-builders/
RUN chmod +x /app-builders/*.sh &&\
ln -s /app-builders/sab.sh /usr/local/bin/scripture-app-builder &&\
ln -s /app-builders/rab.sh /usr/local/bin/reading-app-builder &&\
ln -s /app-builders/dab.sh /usr/local/bin/dictionary-app-builder &&\
ln -s /app-builders/kab.sh /usr/local/bin/keyboard-app-builder
COPY ansible /ansible
WORKDIR /ansible
# Clean up when done. (Preserve 'App Projects' directory!)
RUN mkdir -p /etc/ansible && echo local > /etc/ansible/hosts &&\
ansible-playbook playbook.yml -c local &&\
apt-get clean && rm -rf /var/lib/apt/lists/* /var/cache/apt/* /tmp/*.* /App \Builder/Scripture\ Apps/App\ Projects/* /tmp/App\ Builder/* /root/App\ Builder/Scripture\ Apps/PWA\ Output
#
#COPY patch /patch
#WORKDIR /patch
#
#RUN patch /root/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/fastlane-2.214.0/supply/lib/supply/client.rb < 21507.patch