You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
669 B
23 lines
669 B
FROM debian:bullseye-slim
|
|
|
|
COPY entrypoint-proxy /entrypoint
|
|
|
|
RUN adduser -D -u 54000 radio && \
|
|
apt-get && \
|
|
apt-get install git gcc musl-dev pypy pypy-dev && \
|
|
cd /opt && \
|
|
git clone https://github.com/hacknix/freedmr && \
|
|
cd /opt/freedmr && \
|
|
cd /opt/pypy3.7-v7.3.5-linux64/bin/ && \
|
|
./pypy3 -m ensurepip && \
|
|
/opt/pypy3.7-v7.3.5-linux64/bin/pypy3 -m pip install --no-cache-dir -r requirements.txt && \
|
|
apt-get remove gcc musl-dev pypy-dev && \
|
|
apt-get -y autoremove && \
|
|
apt-get -y purge && \
|
|
rm -rvf /var/cache/apt/archives/* && \
|
|
chown -R radio: /opt/freedmr
|
|
|
|
USER radio
|
|
|
|
ENTRYPOINT [ "/entrypoint" ]
|