33 lines
742 B
Docker
33 lines
742 B
Docker
FROM ubuntu:22.04
|
|
|
|
# Set DEBIAN_FRONTEND to noninteractive
|
|
ENV DEBIAN_FRONTEND noninteractive
|
|
|
|
# RUN sed -i 's/http:\/\/archive\.ubuntu\.com/http:\/\/ftp\.cuhk\.edu\.hk\/pub\/Linux/g' /etc/apt/sources.list && \
|
|
# sed -i 's/http:\/\/security\.ubuntu\.com/http:\/\/ftp\.cuhk\.edu\.hk\/pub\/Linux/g' /etc/apt/sources.list
|
|
|
|
USER root
|
|
|
|
RUN apt-get update && \
|
|
apt-get install -y zsh sudo curl gnupg2
|
|
|
|
RUN apt-get install -qqy python3 python3-pip
|
|
|
|
RUN apt-get install -qqy ffmpeg
|
|
RUN apt-get install -qqy yt-dlp
|
|
RUN apt-get install -qqy entr
|
|
|
|
RUN pip install pipenv
|
|
|
|
RUN mkdir -p /home/user
|
|
RUN chown 1000:1000 -R /home/user
|
|
RUN useradd --uid 1000 --shell /bin/bash --user-group -d /home/user user
|
|
|
|
USER 1000
|
|
WORKDIR /src
|
|
|
|
|
|
|
|
|
|
CMD ["/bin/bash"]
|