mirror of
https://github.com/miaowware/qrm2.git
synced 2024-11-25 17:28:43 -05:00
move docker image to void linux (#435)
This commit is contained in:
parent
8433a7ade0
commit
bbd646a7ec
@ -9,6 +9,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
|||||||
- a new way to support qrm's development.
|
- a new way to support qrm's development.
|
||||||
### Changed
|
### Changed
|
||||||
- Changed the licence to LiLiQ-Rplus-1.1.
|
- Changed the licence to LiLiQ-Rplus-1.1.
|
||||||
|
- Moved official Docker image to Void Linux.
|
||||||
### Fixed
|
### Fixed
|
||||||
- Issue where the help command errored.
|
- Issue where the help command errored.
|
||||||
|
|
||||||
|
23
Dockerfile
23
Dockerfile
@ -1,4 +1,4 @@
|
|||||||
FROM python:3.9-slim
|
FROM voidlinux/voidlinux
|
||||||
|
|
||||||
COPY . /app
|
COPY . /app
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
@ -6,13 +6,12 @@ WORKDIR /app
|
|||||||
ENV PYTHON_BIN python3
|
ENV PYTHON_BIN python3
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
apt-get update && \
|
echo "**** update packages ****" && \
|
||||||
echo "**** install runtime packages ****" && \
|
xbps-install -Suy && \
|
||||||
apt-get install -y --no-install-recommends \
|
echo "**** install system packages ****" && \
|
||||||
libcairo2 \
|
export runtime_deps='cairo libjpeg-turbo' && \
|
||||||
libjpeg62-turbo \
|
export runtime_pkgs="${runtime_deps} python3-pip python3" && \
|
||||||
python-lxml \
|
xbps-install -y $runtime_pkgs && \
|
||||||
&& \
|
|
||||||
echo "**** install pip packages ****" && \
|
echo "**** install pip packages ****" && \
|
||||||
pip3 install -U pip setuptools wheel && \
|
pip3 install -U pip setuptools wheel && \
|
||||||
pip3 install -r requirements.txt && \
|
pip3 install -r requirements.txt && \
|
||||||
@ -20,6 +19,12 @@ RUN \
|
|||||||
rm -rf \
|
rm -rf \
|
||||||
/root/.cache \
|
/root/.cache \
|
||||||
/tmp/* \
|
/tmp/* \
|
||||||
/var/lib/apt/lists/*
|
/var/cache/xbps/*
|
||||||
|
|
||||||
|
ARG UID
|
||||||
|
ENV UID=${UID:-1000}
|
||||||
|
ARG GID
|
||||||
|
ENV GID=${GID:-1000}
|
||||||
|
USER $UID:$GID
|
||||||
|
|
||||||
CMD ["/bin/sh", "run.sh", "--pass-errors", "--no-botenv"]
|
CMD ["/bin/sh", "run.sh", "--pass-errors", "--no-botenv"]
|
||||||
|
Loading…
Reference in New Issue
Block a user