Move image base to linuxserverio alpine base

krateng/maloja#96
This commit is contained in:
FoxxMD 2023-03-17 10:28:07 -04:00
parent 37210995fa
commit 7bc2ba0237
6 changed files with 13 additions and 4 deletions

View File

@ -1,5 +1,6 @@
*
!maloja
!container
!Containerfile
!requirements.txt
!pyproject.toml

View File

@ -1,4 +1,4 @@
FROM alpine:3.15
FROM lsiobase/alpine:3.17 as base
# Python image includes two Python versions, so use base Alpine
# Based on the work of Jonathan Boeckel <jonathanboeckel1996@gmail.com>
@ -23,10 +23,12 @@ RUN \
pip install --no-cache-dir -r requirements.txt && \
apk del .build-deps
COPY container/root/ /
# no chance for caching below here
COPY . .
COPY --chown=abc:abc . .
RUN pip install /usr/src/app
@ -36,5 +38,3 @@ ENV MALOJA_SKIP_SETUP=yes
ENV PYTHONUNBUFFERED=1
EXPOSE 42010
# use exec form for better signal handling https://docs.docker.com/engine/reference/builder/#entrypoint
ENTRYPOINT ["maloja", "run"]

View File

@ -0,0 +1,7 @@
#!/usr/bin/with-contenv bash
# used https://github.com/linuxserver/docker-wikijs/blob/master/root/etc/s6-overlay/s6-rc.d/svc-wikijs/run as a template
echo -e "\nMaloja is starting!"
exec \
s6-setuidgid abc python -m maloja run

View File

@ -0,0 +1 @@
longrun