mirror of
https://github.com/krateng/maloja.git
synced 2023-08-10 21:12:55 +03:00
parent
37210995fa
commit
7bc2ba0237
@ -1,5 +1,6 @@
|
||||
*
|
||||
!maloja
|
||||
!container
|
||||
!Containerfile
|
||||
!requirements.txt
|
||||
!pyproject.toml
|
||||
|
@ -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"]
|
||||
|
7
container/root/etc/s6-overlay/s6-rc.d/svc-python/run
Executable file
7
container/root/etc/s6-overlay/s6-rc.d/svc-python/run
Executable 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
|
1
container/root/etc/s6-overlay/s6-rc.d/svc-python/type
Normal file
1
container/root/etc/s6-overlay/s6-rc.d/svc-python/type
Normal file
@ -0,0 +1 @@
|
||||
longrun
|
Loading…
Reference in New Issue
Block a user