-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from muchdogesec/env-arguments1
Changed the deployment workflow to use the staging environment
- Loading branch information
Showing
5 changed files
with
141 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
FROM python:3.11 | ||
ENV PYTHONUNBUFFERED=1 | ||
|
||
# Arguments | ||
ARG EMAIL_HOST_USER= | ||
ARG DJANGO_SECRET= | ||
ARG DJANGO_DEBUG= | ||
ARG CELERY_BROKER_CONNECTION_RETRY_ON_STARTUP= | ||
ARG MAX_PAGE_SIZE= | ||
ARG DEFAULT_PAGE_SIZE= | ||
ARG BIN_LIST_API_KEY= | ||
ARG OPENAI_API_KEY= | ||
ARG OPENAI_MODEL= | ||
ARG INPUT_TOKEN_LIMIT= | ||
ARG INPUT_TOKEN_LIMIT= | ||
ARG CTIBUTLER_HOST= | ||
ARG CTIBUTLER_APIKEY= | ||
ARG VULMATCH_HOST= | ||
ARG VULMATCH_APIKEY= | ||
ARG GOOGLE_VISION_API_KEY= | ||
ARG MARKER_API_KEY= | ||
ARG USE_S3_STORAGE= | ||
ARG R2_ENDPOINT_URL= | ||
ARG R2_BUCKET_NAME= | ||
ARG R2_ACCESS_KEY= | ||
ARG R2_SECRET_KEY= | ||
ARG R2_CUSTOM_DOMAIN= | ||
|
||
# Set environment variables | ||
ENV DJANGO_SECRET=${DJANGO_SECRET} | ||
ENV DJANGO_DEBUG=${DJANGO_DEBUG} | ||
ENV CELERY_BROKER_CONNECTION_RETRY_ON_STARTUP=${CELERY_BROKER_CONNECTION_RETRY_ON_STARTUP} | ||
ENV MAX_PAGE_SIZE=${MAX_PAGE_SIZE} | ||
ENV DEFAULT_PAGE_SIZE=${DEFAULT_PAGE_SIZE} | ||
ENV BIN_LIST_API_KEY=${BIN_LIST_API_KEY} | ||
ENV OPENAI_API_KEY=${OPENAI_API_KEY} | ||
ENV OPENAI_MODEL=${OPENAI_MODEL} | ||
ENV INPUT_TOKEN_LIMIT=${INPUT_TOKEN_LIMIT} | ||
ENV CTIBUTLER_HOST=${CTIBUTLER_HOST} | ||
ENV CTIBUTLER_APIKEY=${CTIBUTLER_APIKEY} | ||
ENV VULMATCH_HOST=${VULMATCH_HOST} | ||
ENV VULMATCH_APIKEY=${VULMATCH_APIKEY} | ||
ENV GOOGLE_VISION_API_KEY=${GOOGLE_VISION_API_KEY} | ||
ENV USE_S3_STORAGE=${USE_S3_STORAGE} | ||
ENV MARKER_API_KEY=${MARKER_API_KEY} | ||
ENV R2_ENDPOINT_URL=${R2_ENDPOINT_URL} | ||
ENV R2_BUCKET_NAME=${R2_BUCKET_NAME} | ||
ENV R2_ACCESS_KEY=${R2_ACCESS_KEY} | ||
ENV R2_CUSTOM_DOMAIN=${R2_CUSTOM_DOMAIN} | ||
|
||
|
||
|
||
WORKDIR /usr/src/app | ||
COPY requirements.txt ./ | ||
RUN pip install -r requirements.txt | ||
|
||
COPY . /usr/src/app | ||
RUN pip install https://github.com/muchdogesec/dogesec_commons/releases/download/main-2024-11-01/dogesec_commons-0.0.1b0-py3-none-any.whl |