Merge pull request #5 from jamesturner246/docker
Docker: further image miniaturisation. Down to 83MB!
This commit is contained in:
commit
1a9c7ff6da
16
Dockerfile
16
Dockerfile
@ -1,19 +1,15 @@
|
|||||||
FROM python:3.7-slim-buster
|
FROM python:3.7-alpine
|
||||||
#FROM python:3.7-alpine
|
|
||||||
|
|
||||||
COPY entrypoint /entrypoint
|
COPY entrypoint /entrypoint
|
||||||
|
|
||||||
RUN useradd -u 54000 radio && \
|
RUN adduser -D -u 54000 radio && \
|
||||||
apt-get update && \
|
apk update && \
|
||||||
apt-get install -y git gcc && \
|
apk add git gcc musl-dev && \
|
||||||
cd /opt && \
|
cd /opt && \
|
||||||
git clone https://github.com/hacknix/freedmr && \
|
git clone https://github.com/hacknix/freedmr && \
|
||||||
cd freedmr && \
|
cd /opt/freedmr && \
|
||||||
pip install --no-cache-dir -r requirements.txt && \
|
pip install --no-cache-dir -r requirements.txt && \
|
||||||
apt-get purge -y git gcc libx11-6 && \
|
apk del git gcc musl-dev && \
|
||||||
apt-get clean -y && \
|
|
||||||
apt-get autoremove -y && \
|
|
||||||
rm -rf /var/lib/apt/lists/* && \
|
|
||||||
chown -R radio: /opt/freedmr
|
chown -R radio: /opt/freedmr
|
||||||
|
|
||||||
EXPOSE 54000
|
EXPOSE 54000
|
||||||
|
Loading…
x
Reference in New Issue
Block a user