Skip to content

Commit

Permalink
add token env in dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
SukhmeetSingh2002 committed Oct 1, 2023
1 parent b71da5c commit 1da8844
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@ COPY . .
# Expose port 5000 for the Flask web application
EXPOSE 5000

# Set the environment variables for Flask
# Set the environment variables for Flask and HF_TOKEN
ENV FLASK_APP=app.py
ENV FLASK_ENV=production
ENV HF_TOKEN=${HF_TOKEN}

# Run the command to start the Flask web application
# CMD ["flask", "run", "--host=0.0.0.0"]
Expand Down

0 comments on commit 1da8844

Please sign in to comment.