diff --git a/Website/Dockerfile b/Website/Dockerfile index 98ad6c4..7a2c5ad 100644 --- a/Website/Dockerfile +++ b/Website/Dockerfile @@ -5,17 +5,17 @@ ENV PYTHONDONTWRITEBYTECODE=1 \ WORKDIR /app +# Removed docker.io and sudo to reduce image size and avoid conflicts RUN apt-get update \ && apt-get install -y --no-install-recommends \ git \ iproute2 \ - docker.io \ - sudo \ curl \ openssl \ ca-certificates \ && rm -rf /var/lib/apt/lists/* +# Install specific Docker CLI and Compose plugin versions RUN set -eu; \ arch="$(dpkg --print-architecture)"; \ case "$arch" in \ @@ -36,9 +36,9 @@ RUN set -eu; \ COPY requirements.txt ./ RUN pip install --no-cache-dir -r requirements.txt -# Copy application sources into the image (templates, static, main app, config) +# Copy application sources into the image COPY . /app EXPOSE 4999 -CMD ["gunicorn", "-c", "gunicorn.conf.py", "main:app"] +CMD ["gunicorn", "-c", "gunicorn.conf.py", "main:app"]s \ No newline at end of file