updated docker file
All checks were successful
Build and Publish Docker Image / build-and-push (push) Successful in 4m13s
All checks were successful
Build and Publish Docker Image / build-and-push (push) Successful in 4m13s
This commit is contained in:
parent
b2fc0a22a1
commit
96c9ec9d57
@ -14,3 +14,8 @@ env/
|
||||
# IDE/Editor
|
||||
.vscode/
|
||||
.idea/
|
||||
|
||||
# Build artifacts
|
||||
dockerfile
|
||||
.dockerignore
|
||||
*.sample
|
20
dockerfile
20
dockerfile
@ -1,16 +1,6 @@
|
||||
# Builder stage
|
||||
FROM python:3.11-slim-bookworm as builder
|
||||
|
||||
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/*
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY requirements.txt .
|
||||
@ -32,7 +22,15 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
WORKDIR /app
|
||||
|
||||
COPY --from=builder /install /usr/local
|
||||
COPY . .
|
||||
COPY app.py .
|
||||
COPY gunicorn.conf.py .
|
||||
COPY run.sh .
|
||||
COPY VERSION .
|
||||
COPY backend/ backend/
|
||||
COPY lib/ lib/
|
||||
COPY static/ static/
|
||||
COPY templates/ templates/
|
||||
|
||||
|
||||
RUN chmod +x run.sh
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user