diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index f94e03a..cce13c6 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -58,6 +58,7 @@ jobs: uses: docker/build-push-action@v5 with: context: . + platforms: linux/amd64,linux/arm64 push: ${{ github.event_name != 'pull_request' }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} diff --git a/backend/Dockerfile b/backend/Dockerfile index 9ea80cb..50ea8bc 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -1,6 +1,17 @@ FROM python:3.11-slim -COPY require +WORKDIR /app + +COPY requirements.txt . +RUN pip install --no-cache-dir -r requirements.txt + +COPY app.py . + +RUN mkdir -p /app/data + +EXPOSE 5000 + +CMD ["python", "app.py"]