cahnges tot he deployment
This commit is contained in:
+4
-4
@@ -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
|
||||
Reference in New Issue
Block a user