File size: 1,146 Bytes
1cce90b eac929d 1cce90b 30b5747 1cce90b 4f4fff8 eac929d a3f8e50 4f4fff8 eac929d 2c93adb eac929d 30b5747 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 |
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://stackoverflow.com/questions/75608323/how-do-i-solve-error-externally-managed-environment-every-time-i-use-pip-3
# https://veronneau.org/python-311-pip-and-breaking-system-packages.html
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 mkdir /app
COPY . /digiwild
RUN pip3 install -r /digiwild/requirements.txt
RUN chmod -R 777 /digiwild/data /digiwild/app/assets
WORKDIR /digiwild
ENTRYPOINT python3 app/main.py
|