fixes
This commit is contained in:
@@ -29,6 +29,7 @@ pre_push:
|
||||
- build
|
||||
stage: pre_push
|
||||
before_script:
|
||||
- docker rm -f test_container
|
||||
- apk add curl
|
||||
script:
|
||||
- echo "Running container to test image"
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
FROM python:3.11-alpine AS base
|
||||
WORKDIR /app
|
||||
|
||||
FROM base AS builder
|
||||
|
||||
WORKDIR /app
|
||||
COPY requirements.txt /app
|
||||
RUN pip wheel --no-cache-dir -q \
|
||||
--no-deps --wheel-dir /app/wheels \
|
||||
@@ -12,7 +12,7 @@ FROM base AS runner
|
||||
|
||||
COPY --from=builder /app/wheels /wheels
|
||||
RUN pip install --no-cache-dir -q /wheels/*
|
||||
COPY proxy/ /app/
|
||||
COPY proxy/ /proxy/
|
||||
|
||||
ENV PYTHONUNBUFFERED=1
|
||||
EXPOSE 5050
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
from flask import Flask
|
||||
from .config import Config
|
||||
|
||||
print("proxy module loaded!")
|
||||
def proxy_app():
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
class Config:
|
||||
"""Configuration class for Flask"""
|
||||
PROXY_URL = None # Set proxy URL if needed
|
||||
Reference in New Issue
Block a user