Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
hlebkanonik authored Dec 7, 2023
1 parent c7d91f7 commit c580eb9
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,17 @@ FROM --platform=${BUILDPLATFORM} python:3.10.13-slim
RUN apt-get update && apt-get -y upgrade \
&& apt-get install -y libxml2 libgomp1 curl libpcre3 libpcre3-dev \
&& rm -rf /var/lib/apt/lists/*

# Create a group and user
RUN groupadd uwsgi && useradd -g uwsgi uwsgi
USER uwsgi

COPY --from=builder /venv /venv
RUN mkdir /usr/share/nltk_data && chmod g+w /usr/share/nltk_data
COPY --from=builder /usr/share/nltk_data /usr/share/nltk_data/
WORKDIR /backend/
COPY --from=builder /backend ./

# Create a group and user
RUN groupadd uwsgi && useradd -g uwsgi uwsgi
USER uwsgi

EXPOSE 5001
ENV VIRTUAL_ENV="/venv"

Expand Down

0 comments on commit c580eb9

Please sign in to comment.