-
Notifications
You must be signed in to change notification settings - Fork 17
/
Dockerfile
39 lines (24 loc) · 900 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
34
35
36
37
38
39
# inference stage
FROM ubuntu:20.04 As inference
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y ffmpeg git python3 python3-pip unzip && \
pip3 install --upgrade pip
COPY requirements.txt .
RUN pip3 install -r requirements.txt && rm requirements.txt
RUN mkdir /app
COPY . /app
COPY asserts.zip /tmp/
RUN unzip /tmp/asserts.zip -d /app/ && rm -r /app/asserts/examples /tmp/asserts.zip
WORKDIR /app
# training stage
FROM ubuntu:20.04 As training
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y ffmpeg git python3 python3-pip unzip && \
pip3 install --upgrade pip
COPY requirements_training.txt .
RUN pip3 install -r requirements_training.txt && rm requirements_training.txt
RUN mkdir /app
COPY . /app
COPY asserts.zip /tmp/
RUN unzip /tmp/asserts.zip -d /app/ && rm -r /app/asserts/examples /tmp/asserts.zip
WORKDIR /app