diff --git a/.forgejo/workflows/start.yaml b/.forgejo/workflows/start.yaml index 4029c0d..e8882bd 100644 --- a/.forgejo/workflows/start.yaml +++ b/.forgejo/workflows/start.yaml @@ -76,6 +76,10 @@ jobs: DEPLOY_PORT: ${{ secrets.DEPLOY_PORT }} DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }} DEPLOY_USER: ${{ secrets.DEPLOY_USER }} + + API_PORT: ${{ secrets.API_PORT }} + FRONTEND_PORT: ${{ secrets.FRONTEND_PORT }} + AI_API_KEY: ${{ secrets.AI_API_KEY }} run: | # Begin setting up SSH w/ Secrets install -m 600 -D /dev/null ~/.ssh/$DEPLOY_USER @@ -88,9 +92,11 @@ jobs: docker context use deploy # Add secrets to the .env file - echo ${{ secrets.API_PORT }} >> .env - echo ${{ secrets.FRONTEND_PORT }} >> .env - echo ${{ secrets.AI_API_KEY }} >> .env + echo < .env + "API_PORT=$API_PORT" + "FRONTEND_PORT=$FRONTEND_PORT" + "AI_API_KEY=$AI_API_KEY" + EOF # Check to see if we have checked out the repo. docker compose down diff --git a/Dockerfile b/Dockerfile index 9f42f96..272f4b2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,9 +17,9 @@ COPY frontend/ . RUN npm run build # NOTE: Backend setup -FROM node:25-alpine AS backend-build +FROM python:alpine AS backend-build -RUN apk add --no-cache python3 py3-pip +#RUN apk add --no-cache python3 py3-pip WORKDIR /app/api