fixes
This commit is contained in:
@@ -29,6 +29,7 @@ pre_push:
|
|||||||
- build
|
- build
|
||||||
stage: pre_push
|
stage: pre_push
|
||||||
before_script:
|
before_script:
|
||||||
|
- docker rm -f test_container
|
||||||
- apk add curl
|
- apk add curl
|
||||||
script:
|
script:
|
||||||
- echo "Running container to test image"
|
- echo "Running container to test image"
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
FROM python:3.11-alpine AS base
|
FROM python:3.11-alpine AS base
|
||||||
WORKDIR /app
|
|
||||||
|
|
||||||
FROM base AS builder
|
FROM base AS builder
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
COPY requirements.txt /app
|
COPY requirements.txt /app
|
||||||
RUN pip wheel --no-cache-dir -q \
|
RUN pip wheel --no-cache-dir -q \
|
||||||
--no-deps --wheel-dir /app/wheels \
|
--no-deps --wheel-dir /app/wheels \
|
||||||
@@ -12,7 +12,7 @@ FROM base AS runner
|
|||||||
|
|
||||||
COPY --from=builder /app/wheels /wheels
|
COPY --from=builder /app/wheels /wheels
|
||||||
RUN pip install --no-cache-dir -q /wheels/*
|
RUN pip install --no-cache-dir -q /wheels/*
|
||||||
COPY proxy/ /app/
|
COPY proxy/ /proxy/
|
||||||
|
|
||||||
ENV PYTHONUNBUFFERED=1
|
ENV PYTHONUNBUFFERED=1
|
||||||
EXPOSE 5050
|
EXPOSE 5050
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
from flask import Flask
|
from flask import Flask
|
||||||
from .config import Config
|
|
||||||
|
|
||||||
print("proxy module loaded!")
|
print("proxy module loaded!")
|
||||||
def proxy_app():
|
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