Skip to content

Commit

Permalink
Fix error in build with latest alpine version
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
  • Loading branch information
alexellis committed Aug 3, 2023
1 parent 6fe987e commit 73a261a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions sentimentanalysis/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM --platform=${TARGETPLATFORM:-linux/amd64} ghcr.io/openfaas/classic-watchdog:0.1.4 as watchdog
FROM --platform=${TARGETPLATFORM:-linux/amd64} python:3
FROM --platform=${TARGETPLATFORM:-linux/amd64} python:3.11

RUN mkdir -p /home/app

Expand All @@ -8,18 +8,18 @@ RUN chmod +x /usr/bin/fwatchdog

# Add non root user
RUN addgroup --system app \
&& adduser --system --ingroup app app

&& adduser --system --ingroup app app --home /home/app
RUN mkdir -p /home/app
RUN chown app /home/app

WORKDIR /home/app


USER app
COPY requirements.txt .
RUN pip install -r requirements.txt
RUN pip install --user -r requirements.txt
RUN python3 -m textblob.download_corpora lite


COPY handler.py .
ENV fprocess="python3 ./handler.py"

Expand Down

0 comments on commit 73a261a

Please sign in to comment.