Django.fun

docker- django build image, but don't run in linux server

in my ubuntu computer, I can build image and run with no error

enter image description here

but in linux server, when running, it stop at showing notification in red circle, than it is off but doesn't showing any error

enter image description here

I try building docker image with a simple django project (https://www.section.io/engineering-education/django-docker/) and it runs without error in linux server

any idea to resolve this?

My dockerfile:

FROM ubuntu:20.04

RUN apt-get update \
    && apt-get install -y python3-pip python3-dev\
    && cd /usr/local/bin \
    && ln -s /usr/bin/python3 python \
    && pip3 install --upgrade pip

##############################################################################################
#FROM python:3.8.3-alpine
#FROM python:3.6.1-alpine

# set work directory
WORKDIR /usr/src/app

# set environment variables
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1

# install dependencies
#RUN python3 -m pip install --ignore-installed --upgrade "Download URL"
RUN python3 -m pip install --upgrade pip 
COPY ./requirements.txt /usr/src/app
RUN python3 -m pip install -r requirements.txt
#RUN python3 -m pip install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow_cpu-2.7.0-cp38-cp38-manylinux2010_x86_64.whl

# copy project
COPY . /usr/src/app

EXPOSE 8000

CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"]

Answers: 0