diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e984c78..c7c693b 100755 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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" diff --git a/Dockerfile b/Dockerfile index 5c915d0..57948d8 100755 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/proxy/__init__.py b/proxy/__init__.py index e5f71dd..fc291e8 100755 --- a/proxy/__init__.py +++ b/proxy/__init__.py @@ -1,5 +1,4 @@ from flask import Flask -from .config import Config print("proxy module loaded!") def proxy_app(): diff --git a/proxy/config.py b/proxy/config.py deleted file mode 100755 index 3613970..0000000 --- a/proxy/config.py +++ /dev/null @@ -1,3 +0,0 @@ -class Config: - """Configuration class for Flask""" - PROXY_URL = None # Set proxy URL if needed