|
FROM ubuntu:latest |
|
|
|
RUN apt-get update |
|
RUN apt-get install python3 python3-pip -y |
|
# FROM ubuntu:22.04 |
|
|
|
# RUN apt update |
|
# RUN apt-get update |
|
# RUN apt install python3.10 python3-pip -y |
|
|
|
# https: |
|
# https: |
|
ENV PIP_BREAK_SYSTEM_PACKAGES 1 |
|
|
|
|
|
################################################## |
|
# Ubuntu setup |
|
################################################## |
|
|
|
RUN apt-get update \ |
|
&& apt-get install -y wget \ |
|
&& rm -rf /var/lib/apt/lists |
|
|
|
RUN apt-get update && apt-get -y upgrade \ |
|
&& apt-get install -y --no-install-recommends \ |
|
unzip \ |
|
nano \ |
|
git \ |
|
g++ \ |
|
gcc \ |
|
htop \ |
|
zip \ |
|
ca-certificates \ |
|
&& rm -rf /var/lib/apt/lists/* |
|
|
|
################################################## |
|
# ODTP setup |
|
################################################## |
|
|
|
RUN useradd -m -u 1000 user |
|
USER user |
|
|
|
RUN mkdir /app |
|
COPY --chown=user:user . /digiwild |
|
|
|
RUN pip3 install -r /digiwild/requirements.txt |
|
|
|
RUN chown -R user:user /digiwild/data /digiwild/app/assets |
|
|
|
WORKDIR /digiwild |
|
ENTRYPOINT python3 app/main.py |
|
|