mirror of
https://github.com/aljazceru/gcups.git
synced 2025-12-17 05:14:23 +01:00
Reduce image size to 865MB
This commit is contained in:
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
*__pycache__**
|
||||
*~
|
||||
@@ -1,14 +1,15 @@
|
||||
FROM docker.io/ubuntu:jammy-20240227
|
||||
RUN apt-get update && apt-get install -y wget gpg xvfb libgbm-dev libasound2 python3-pip && \
|
||||
RUN apt-get update && apt-get install --no-install-recommends -y wget gpg xvfb libgbm-dev libasound2 python3-pip && \
|
||||
wget -qO- https://gcups-static.greencell.global/csgsa-keyring.gpg | gpg --dearmor | dd of=/usr/share/keyrings/csgsa-keyring.gpg && \
|
||||
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/csgsa-keyring.gpg] https://gcups-static.greencell.global/deb stable non-free" | dd of=/etc/apt/sources.list.d/gcups.list && \
|
||||
apt-get update -y && apt-get install -y gcups && \
|
||||
apt-get update -y && apt-get install --no-install-recommends -y gcups && \
|
||||
rm -rf var/lib/apt/lists/* && \
|
||||
python3 -m pip install plyvel && \
|
||||
python3 -m pip --no-cache-dir install plyvel && \
|
||||
apt-get remove -y python3-pip && \
|
||||
mkdir -m775 -p /opt/gcups/db/gcups-rxdb-1-settings
|
||||
|
||||
COPY populate-db.py db.txt ./
|
||||
COPY init.sh populate-db.py db.txt /opt/
|
||||
WORKDIR /opt
|
||||
RUN python3 populate-db.py
|
||||
|
||||
ENV GCUPS_HTTP_PORT=8080
|
||||
@@ -16,5 +17,4 @@ ENV GCUPS_PASSWORD=gcups123
|
||||
|
||||
EXPOSE $GCUPS_HTTP_PORT
|
||||
|
||||
COPY init.sh /opt/init.sh
|
||||
ENTRYPOINT ["/opt/init.sh"]
|
||||
|
||||
Reference in New Issue
Block a user