forked from VergilGao/docker-mdc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
33 lines (26 loc) · 859 Bytes
/
Dockerfile
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
FROM python:3.8-slim
LABEL maintainer="VergilGao"
# 软件包版本号
ARG AVDC_VERSION
RUN \
apt-get update && \
apt-get install -y wget ca-certificates && \
mkdir build && \
cd build && \
wget -O - https://github.com/yoshiko2/AV_Data_Capture/archive/${AVDC_VERSION}.tar.gz | tar xz && \
mv AV_Data_Capture-${AVDC_VERSION} /app && \
cd .. && \
rm -rf build && \
cd /app && \
sed -i '/pyinstaller/d' requirements.txt && \
cat requirements.txt && \
pip install --no-cache-dir -r requirements.txt && \
apt-get purge -y wget
VOLUME /app/data
WORKDIR /app
COPY docker-entrypoint.sh docker-entrypoint.sh
# 镜像版本号
ARG BUILD_DATE
LABEL build_version="catfight360.com avdc-version:- ${AVDC_VERSION} build-date:- ${BUILD_DATE}"
RUN chmod +x docker-entrypoint.sh
ENTRYPOINT ["./docker-entrypoint.sh"]