This commit is contained in:
parent
da2f4779c1
commit
10900c346e
3 changed files with 11 additions and 5 deletions
4
.github/workflows/release.yml
vendored
4
.github/workflows/release.yml
vendored
|
|
@ -38,3 +38,7 @@ jobs:
|
||||||
- name: Push Docker image
|
- name: Push Docker image
|
||||||
run: |
|
run: |
|
||||||
docker push ${{ steps.image_name.outputs.IMAGE_NAME }}
|
docker push ${{ steps.image_name.outputs.IMAGE_NAME }}
|
||||||
|
- name: Tag image as latest
|
||||||
|
run: |
|
||||||
|
docker tag ${{ steps.image_name.outputs.IMAGE_NAME }} ghcr.io/${{ github.repository }}:latest
|
||||||
|
docker push ghcr.io/${{ github.repository }}:latest
|
||||||
11
Dockerfile
11
Dockerfile
|
|
@ -1,6 +1,7 @@
|
||||||
FROM python:3
|
FROM python:3.12
|
||||||
|
WORKDIR /app
|
||||||
|
COPY backend/requirements.txt ./backend/requirements.txt
|
||||||
|
RUN pip install --no-cache-dir -r backend/requirements.txt
|
||||||
COPY . .
|
COPY . .
|
||||||
WORKDIR backend
|
RUN chmod +x run_app.sh
|
||||||
RUN pip install -r requirements.txt
|
ENTRYPOINT ["./run_app.sh"]
|
||||||
WORKDIR ..
|
|
||||||
ENTRYPOINT run_app.sh
|
|
||||||
|
|
|
||||||
|
|
@ -5,3 +5,4 @@ torchvision
|
||||||
pdf2image
|
pdf2image
|
||||||
pillow
|
pillow
|
||||||
requests
|
requests
|
||||||
|
flask
|
||||||
Loading…
Reference in a new issue