update,
This commit is contained in:
32
project/Dockerfile
Normal file
32
project/Dockerfile
Normal file
@@ -0,0 +1,32 @@
|
||||
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"]
|
Reference in New Issue
Block a user