cahnges tot he deployment
This commit is contained in:
+4
-4
@@ -5,17 +5,17 @@ ENV PYTHONDONTWRITEBYTECODE=1 \
|
|||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
# Removed docker.io and sudo to reduce image size and avoid conflicts
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get install -y --no-install-recommends \
|
&& apt-get install -y --no-install-recommends \
|
||||||
git \
|
git \
|
||||||
iproute2 \
|
iproute2 \
|
||||||
docker.io \
|
|
||||||
sudo \
|
|
||||||
curl \
|
curl \
|
||||||
openssl \
|
openssl \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
# Install specific Docker CLI and Compose plugin versions
|
||||||
RUN set -eu; \
|
RUN set -eu; \
|
||||||
arch="$(dpkg --print-architecture)"; \
|
arch="$(dpkg --print-architecture)"; \
|
||||||
case "$arch" in \
|
case "$arch" in \
|
||||||
@@ -36,9 +36,9 @@ RUN set -eu; \
|
|||||||
COPY requirements.txt ./
|
COPY requirements.txt ./
|
||||||
RUN pip install --no-cache-dir -r 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
|
COPY . /app
|
||||||
|
|
||||||
EXPOSE 4999
|
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