Update Dockerfile

Replace ubuntu with alpine base image to reduce docker image size from 450MB to 10MB
This commit is contained in:
2023-05-24 16:03:15 +07:00
committed by GitHub
parent 49f58e16f0
commit e627cf1708
+6 -8
View File
@@ -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"]