szk1ck commited on
Commit
040488e
·
1 Parent(s): 5c66d4a

update to install libzbar0

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -2
Dockerfile CHANGED
@@ -2,10 +2,15 @@ FROM python:3.9
2
 
3
  WORKDIR /code
4
 
5
- COPY ./requirements.txt /code/requirements.txt
 
 
 
 
6
 
 
 
7
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
8
- RUN sudo apt-get install libzbar0
9
 
10
  COPY . .
11
 
 
2
 
3
  WORKDIR /code
4
 
5
+ # environment
6
+ RUN apt-get update \
7
+ && apt-get install -y libzbar0 \
8
+ && apt-get clean \
9
+ && rm -rf /var/lib/apt/lists/*
10
 
11
+ # python library
12
+ COPY ./requirements.txt /code/requirements.txt
13
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
 
14
 
15
  COPY . .
16