reduced dockerfile
This commit is contained in:
parent
13368a0437
commit
c174f1dbc9
11
dockerfile
11
dockerfile
@ -1,5 +1,5 @@
|
||||
# Builder stage
|
||||
FROM python:3.11-slim-bookworm as builder
|
||||
FROM python:3.11-slim-bookworm AS builder
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
@ -7,15 +7,10 @@ COPY requirements.txt .
|
||||
RUN pip install --no-cache-dir --prefix=/install -r requirements.txt
|
||||
|
||||
# Final stage
|
||||
FROM python:3.11-slim-bookworm as final
|
||||
FROM python:3.11-slim-bookworm AS final
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
libglib2.0-0 \
|
||||
libsm6 \
|
||||
libxrender1 \
|
||||
libxext6 \
|
||||
libgomp1 \
|
||||
libgl1 \
|
||||
&& apt-get clean \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
@ -43,5 +38,5 @@ USER appuser
|
||||
|
||||
EXPOSE 5000
|
||||
|
||||
ENV FLASK_ENV production
|
||||
ENV FLASK_ENV=production
|
||||
CMD ["./run.sh"]
|
||||
|
BIN
requirements.txt
BIN
requirements.txt
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user