File size: 473 Bytes
7d27dca
 
 
 
 
 
e0025e3
7d27dca
 
 
1040b57
e0025e3
7d27dca
 
2b82ef8
7d27dca
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM python:3.9-slim

RUN useradd -m -u 1000 user
WORKDIR /usr/src/app

# Copy the files
RUN echo Copying files
COPY app.py .
COPY lambdas.py .
COPY requirements.txt .
COPY descriptions.py .

# Installations
RUN apt-get update && apt-get install libzbar0 -y && pip install pyzbar
RUN pip install --no-cache-dir --upgrade -r requirements.txt
RUN pip install --no-cache-dir gradio

# Expose
EXPOSE 7860
ENV GRADIO_SERVER_NAME="0.0.0.0"

# Run the app
CMD ["python", "app.py"]