Skip to content

Commit

Permalink
Merge pull request #1 from navin772/docker-build
Browse files Browse the repository at this point in the history
Fix Dockerfile for github actions
  • Loading branch information
navin772 authored Aug 31, 2023
2 parents 8733a83 + 89a9e85 commit 7449447
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/docker_build_push_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ jobs:
with:
context: .
file: ./web_application/Dockerfile
tags: navin772/retail:latest
push: true
tags: ${{ steps.meta.outputs.tags }}
# tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

9 changes: 4 additions & 5 deletions web_application/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ RUN git clone https://github.com/ultralytics/ultralytics
# Change directory to ultralytics
WORKDIR /app/ultralytics

RUN ls

# Delete the requirements.txt file
RUN rm requirements.txt

Expand All @@ -33,14 +35,11 @@ RUN pip install --no-cache -e .

# Go back to the original working directory
WORKDIR /app
RUN ls

# RUN rm -r ultralytics

# Copy the contents of the current directory to the Docker container
COPY . /app

WORKDIR /web_application

COPY /web_application /app
RUN ls

EXPOSE 8501
Expand Down

0 comments on commit 7449447

Please sign in to comment.