Update Dockerfile
This commit is contained in:
parent
daeae200e7
commit
82209902d5
@ -2,14 +2,17 @@ FROM python:3.10-slim
|
|||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
# System dependencies for Postgres & builds
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get install -y gcc libpq-dev --no-install-recommends \
|
&& apt-get install -y gcc libpq-dev --no-install-recommends \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
# Python dependencies
|
||||||
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 code
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
|
# Expose Flask port
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
CMD ["gunicorn", "-b", "0.0.0.0:3000", "app:app"]
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user