Skip to content

Commit

Permalink
Merge pull request #936 from Fagner-lourenco/patch-1
Browse files Browse the repository at this point in the history
Update Dockerfile
  • Loading branch information
dartpain authored May 12, 2024
2 parents 12d483f + 3f68e0d commit 16b2a54
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion application/Dockerfile
Original file line number Diff line number Diff line change
@@ -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 && \
Expand Down Expand Up @@ -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/*

Expand All @@ -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
Expand Down

0 comments on commit 16b2a54

Please sign in to comment.