mirror of
https://github.com/markqvist/LXMF.git
synced 2024-12-26 23:59:34 -05:00
Merge branch 'master' of github.com:markqvist/LXMF
This commit is contained in:
commit
c369c6fc26
31
Dockerfile
Normal file
31
Dockerfile
Normal file
@ -0,0 +1,31 @@
|
||||
FROM python:alpine
|
||||
LABEL authors="Petr Blaha petr.blaha@cleverdata.cz"
|
||||
USER root
|
||||
RUN apk update
|
||||
RUN apk add sdl2_ttf sdl2 build-base libc-dev pkgconfig gstreamer sdl2_mixer sdl2_image sdl2_pango linux-headers mesa-dev py3-virtualenv
|
||||
|
||||
RUN addgroup -S myuser && adduser -S -G myuser myuser
|
||||
USER myuser
|
||||
WORKDIR /home/myuser
|
||||
|
||||
RUN pip install --upgrade pip
|
||||
|
||||
|
||||
ENV PATH="/home/myuser/.local/bin:${PATH}"
|
||||
|
||||
################### BEGIN LXMF ###########################################
|
||||
|
||||
COPY --chown=myuser:myuser requirements.txt requirements.txt
|
||||
|
||||
RUN pip install --user -r requirements.txt
|
||||
|
||||
|
||||
COPY --chown=myuser:myuser . .
|
||||
|
||||
#Python create virtual environment
|
||||
RUN virtualenv /home/myuser/LXMF/venv
|
||||
RUN source /home/myuser/LXMF/venv/bin/activate
|
||||
|
||||
RUN make all
|
||||
|
||||
################### END LXMF ###########################################
|
6
Dockerfile.howto
Normal file
6
Dockerfile.howto
Normal file
@ -0,0 +1,6 @@
|
||||
# Run docker command one by one(all four), it will build LXMF artifact and copy to dist directory.
|
||||
# No need to build locally and install dependencies
|
||||
docker build -t lxmfdockerimage .
|
||||
docker run -d -it --name lxmfdockercontainer lxmfdockerimage /bin/sh
|
||||
docker cp lxmfdockercontainer:/home/myuser/dist .
|
||||
docker rm -f lxmfdockercontainer
|
3
requirements.txt
Normal file
3
requirements.txt
Normal file
@ -0,0 +1,3 @@
|
||||
qrcode==7.4.2
|
||||
rns==0.5.7
|
||||
setuptools==68.0.0
|
Loading…
Reference in New Issue
Block a user