Merge pull request #936 from Fagner-lourenco/patch-1

Update Dockerfile
pull/952/head
Alex 2 weeks ago committed by GitHub
commit 16b2a54981
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1,6 +1,8 @@
# Builder Stage
FROM ubuntu:mantic as builder
ENV DEBIAN_FRONTEND=noninteractive
# Install necessary packages and Python
RUN apt-get update && \
apt-get install -y --no-install-recommends gcc curl wget unzip libc6-dev python3.11 python3-pip python3.11-venv && \
@ -43,7 +45,7 @@ RUN pip install --no-cache-dir --upgrade pip && \
FROM ubuntu:mantic as final
# Install Python
RUN apt-get update && apt-get install -y --no-install-recommends python3.11 python3.11-venv && \
RUN apt-get update && apt-get install -y --no-install-recommends python3.11 && \
ln -s /usr/bin/python3.11 /usr/bin/python && \
rm -rf /var/lib/apt/lists/*
@ -62,6 +64,8 @@ COPY --from=builder /model /app/model
COPY . /app/application
# Change the ownership of the /app directory to the appuser
RUN mkdir -p /app/application/inputs/local
RUN chown -R appuser:appuser /app
# Set environment variables

Loading…
Cancel
Save