Skip to content
This repository has been archived by the owner on Dec 7, 2023. It is now read-only.

Commit

Permalink
fix env variables
Browse files Browse the repository at this point in the history
  • Loading branch information
fox918 committed Oct 29, 2023
1 parent a7d5c6d commit 69dc34c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build-backend.yml
Expand Up @@ -42,5 +42,7 @@ jobs:
context: ./backend
platforms: linux/amd64,linux/arm64
push: true
build-args: |
"API_AUTH_TOKEN=${{ secrets.API_AUTH_TOKEN }}"
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
11 changes: 7 additions & 4 deletions backend/Dockerfile
@@ -1,13 +1,16 @@
FROM python:3-alpine
FROM python:3

ARG API_AUTH_TOKEN
ENV authorization ${API_AUTH_TOKEN}

WORKDIR /app

COPY requirements.txt ./

RUN pip install -r requirements.txt

COPY . .

EXPOSE 5000
CMD [ "flask", "run","--host","0.0.0.0","--port","5000"]

0 comments on commit 69dc34c

Please sign in to comment.