move static env to dockerfile
This commit is contained in:
15
Dockerfile
15
Dockerfile
@@ -4,12 +4,17 @@ RUN apt-get update \
|
||||
curl ca-certificates iputils-ping \
|
||||
python3-ldap python3-pip python3-ldap \
|
||||
libjpeg-dev libturbojpeg0-dev \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
&& apt-get clean
|
||||
COPY requirements.txt ./
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
COPY requirements.txt ./
|
||||
#necessary hack for cffi
|
||||
RUN pip3 install cffi
|
||||
RUN pip3 install -r requirements.txt
|
||||
COPY inventory-app /app
|
||||
|
||||
ENV PYTHONUNBUFFERED=1
|
||||
ENV ENVIRONMENT_TYPE=PROD
|
||||
|
||||
WORKDIR /app
|
||||
ENTRYPOINT /app/main.py
|
||||
COPY inventory-app .
|
||||
|
||||
ENTRYPOINT ["python3", "/app/main.py"]
|
||||
|
Reference in New Issue
Block a user