-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
41 lines (34 loc) · 907 Bytes
/
Dockerfile
File metadata and controls
41 lines (34 loc) · 907 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
FROM python:3.11.3-slim-bullseye
RUN apt-get update && apt-get install \
--no-install-recommends -qq -y \
build-essential \
locales \
git \
python3-pip \
python3-setuptools \
gcc \
g++ \
libpoppler-cpp-dev \
poppler-utils \
pkg-config \
cmake \
python3-opencv \
libopencv-dev \
libjpeg-dev \
libpng-dev
# configura locales
RUN sed -i -e 's/# \(pt_BR\.UTF-8 .*\)/\1/' /etc/locale.gen && locale-gen
ENV LANG pt_BR.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL pt_BR.UTF-8
RUN apt-get install -y locales locales-all
WORKDIR /app
# instala os requerimentos do projeto
COPY poetry.lock pyproject.toml /app/
RUN pip install poetry
RUN poetry config virtualenvs.create false
RUN poetry install --only main --no-interaction --no-ansi
# copia o diretório do projeto
COPY ./process_data_flow ./process_data_flow
# limpa arquivos desnecessários
RUN rm -rf poetry.lock pyproject.toml