mirror of
https://github.com/10h30/lookbusy-docker.git
synced 2026-05-12 15:21:21 +09:00
Update Dockerfile
Replace ubuntu with alpine base image to reduce docker image size from 450MB to 10MB
This commit is contained in:
+6
-8
@@ -1,12 +1,10 @@
|
|||||||
FROM ubuntu:18.04
|
FROM alpine:3.14
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
#RUN sed -i s@/archive.ubuntu.com/@/mirrors.aliyun.com/@g /etc/apt/sources.list
|
RUN apk update
|
||||||
#RUN sed -i s@/security.ubuntu.com/@/mirrors.aliyun.com/@g /etc/apt/sources.list
|
RUN apk add --no-cache cmake build-base git && \
|
||||||
RUN apt-get update
|
git clone https://github.com/10h30/lookbusy.git && \
|
||||||
RUN apt-get -y install vim cmake build-essential wget git
|
cd lookbusy && chmod +x ./configure && ./configure && make && \
|
||||||
|
apk del build-base git cmake
|
||||||
|
|
||||||
RUN git clone https://github.com/10h30/lookbusy.git
|
|
||||||
RUN cd lookbusy && chmod +x ./configure && ./configure && make
|
|
||||||
# COPY start.sh /root/
|
|
||||||
CMD ["sh", "/app/start.sh"]
|
CMD ["sh", "/app/start.sh"]
|
||||||
|
|||||||
Reference in New Issue
Block a user