dokku zero downtime

This commit is contained in:
Igor Lobanov
2022-11-10 23:44:04 +01:00
parent 58c27718ed
commit afee087d88
3 changed files with 20 additions and 15 deletions

View File

@@ -1,15 +1,13 @@
FROM python:3.8
EXPOSE 8080
RUN /usr/local/bin/python -m pip install --upgrade pip
WORKDIR /usr/src/app
COPY requirements.txt ./
RUN set -ex && pip install -r requirements.txt
COPY . .
CMD ["python", "server.py"]
FROM python:3.8
EXPOSE 8080
RUN /usr/local/bin/python -m pip install --upgrade pip
WORKDIR /usr/src/app
COPY requirements.txt ./
RUN set -ex && pip install -r requirements.txt
COPY . .