Skip to content

Commit

Permalink
fixing docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
Rudiio committed Dec 12, 2023
1 parent a58c5d6 commit be1eed6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/ci-cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

0 comments on commit be1eed6

Please sign in to comment.