-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (20 loc) · 910 Bytes
/
Copy pathDockerfile
File metadata and controls
27 lines (20 loc) · 910 Bytes
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
# Dockerfile to update subtle-ads on all arc42.org websites
###########################################################
# minimal linux
FROM alpine:3.17
RUN apk update && apk upgrade && \
apk add --no-cache bash git openssh ncurses
LABEL version="1.1.0"
LABEL description="updates subtle-ads on arc42 websites: \
(1) clone the respective repos and\
(2) update the submodules within.\
(3) commit and push, which\
(4) initiates re-generation of github-pages."
COPY update-ads-in-container.sh /update-ads-in-container.sh
RUN chmod +x /update-ads-in-container.sh
# ensure git actions are attributed
RUN git config --global user.email "gs@gernotstarke.de" && \
git config --global user.name "arc42 update-ads Docker container"
# in case interactive sessions will be used, set decent prompt
# RUN export PS1='$(whoami)@arc42-docker-container-$(hostname):$(pwd) >'
CMD ["./update-ads-in-container.sh"]