Skip to content

Commit

Permalink
update docker and workflow file
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Chen authored and Mark Chen committed Feb 13, 2024
1 parent 5f6d308 commit 15ba8c3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/python-app-unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ jobs:

# Pull the latest version of the base image to ensure it's up to date
- name: Pull latest base image
run: docker pull tiangolo/uvicorn-gunicorn-fastapi:python3.9
run: docker pull ubuntu:20.04

# Build the Docker image, with caching of Docker layers
- name: Build Docker image
run: |
docker build -t fastapirepo . --cache-from tiangolo/uvicorn-gunicorn-fastapi:python3.9
docker build -t fastapirepo . --cache-from ubuntu:20.04
# Run unit tests in the Docker container
- name: Unit Tests
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
# Copy your application source code and script
COPY ./src /app

CMD ["uvicorn", "app.app.main:app", "--host", "0.0.0.0", "--port", "7860"]
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]

0 comments on commit 15ba8c3

Please sign in to comment.