feat(apps): mediawiki dockerfile

This commit is contained in:
darksaid98 committed 2025-01-04 05:01:57 +01:00
1 parent 43ab26d0b5
commit c302f850ec
3 files changed
+32

No files matched your search

+1
View File
@@ -17,6 +17,7 @@ jobs:
matrix:
app:
- uptimekuma
- mediawiki
steps:
- uses: actions/checkout@v4
+18
View File
@@ -0,0 +1,18 @@
FROM --platform=$TARGETOS/$TARGETARCH mediawiki:1.42.4
LABEL org.opencontainers.image.source="https://github.com/darksaid98/yolks"
LABEL author="darksaid98" maintainer="[email protected]"
ENV DEBIAN_FRONTEND noninteractive
RUN apt -y update && \
apt -y upgrade && \
apt -y install iproute2 && \
useradd -d /home/container -m container -s /bin/bash
USER container
ENV USER=container HOME=/home/container
WORKDIR /home/container
COPY ./entrypoint.sh /entrypoint.sh
CMD ["/bin/bash", "/entrypoint.sh"]
+13
View File
@@ -0,0 +1,13 @@
#!/bin/bash
cd /home/container
# Make internal Docker IP address available to processes.
INTERNAL_IP=$(ip route get 1 | awk '{print $(NF-2);exit}')
export INTERNAL_IP
# Replace Startup Variables
MODIFIED_STARTUP=$(echo -e ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g')
echo -e ":/home/container$ ${MODIFIED_STARTUP}"
# Run the Server
eval ${MODIFIED_STARTUP}