Create a Dockerfile in your Python app project

FROM python:3

WORKDIR /usr/src/app

COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt

COPY . .

CMD [ "python", "./your-daemon-or-script.py" ]
评论数量: 0

0
点赞
254
浏览
0
评论

贡献 67