From be1eed623646b5ed185f9a2158e0512a0facb00a Mon Sep 17 00:00:00 2001 From: Rudio Date: Tue, 12 Dec 2023 17:19:40 +0100 Subject: [PATCH] fixing docker image --- .github/workflows/ci-cd.yaml | 11 +++++++++++ Dockerfile | 4 ++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci-cd.yaml b/.github/workflows/ci-cd.yaml index e15b831..8f4073c 100644 --- a/.github/workflows/ci-cd.yaml +++ b/.github/workflows/ci-cd.yaml @@ -39,6 +39,17 @@ jobs: - name : Checkout repository uses: actions/checkout@v4 + - name: Use python + uses: actions/setup-python@v4 + with: + python-version: '3.9' + + - name : install dvc + run : pip install dvc + + - name : pull data from dvc + run : python -m dvc pull -r origin + - name: Docker login run: docker login -u ${{ secrets.DOCKER_HUB_USERNAME }} -p ${{ secrets.DOCKER_HUB_TOKEN }} diff --git a/Dockerfile b/Dockerfile index b973d85..541c598 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,12 +4,12 @@ ENV PYTHONUNBUFFERED 1 COPY requirements.txt . -RUN pip install --no-cache-dir -r requirements.txt - WORKDIR /app COPY . /app/ +RUN pip install --no-cache-dir -r requirements.txt + EXPOSE 5000 CMD ["python3", "run_servers.py"]