This commit is contained in:
2025-03-03 20:49:49 +03:00
parent e66f081370
commit db6e6e3376
4 changed files with 3 additions and 6 deletions

View File

@@ -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"

View File

@@ -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

View File

@@ -1,5 +1,4 @@
from flask import Flask
from .config import Config
print("proxy module loaded!")
def proxy_app():

View File

@@ -1,3 +0,0 @@
class Config:
"""Configuration class for Flask"""
PROXY_URL = None # Set proxy URL if needed