File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ** /* .pyc
2+ . * cache
3+ ** /node_modules
4+ aw-server-rust /target
5+ aw-android
6+ . /other
Original file line number Diff line number Diff line change 1+ FROM python:3.8
2+
3+ ARG PORT
4+ ENV SERVER_PORT=$PORT
5+
6+ # Disables pip caching
7+ ENV PIP_NO_CACHE_DIR=false
8+
9+ # Install dependencies
10+ RUN apt-get update
11+ RUN apt-get install -y git build-essential apt-utils wget libfreetype6 libpng-dev libopenblas-dev gcc gfortran
12+ RUN python3 -m pip install pipenv
13+
14+ RUN mkdir /app
15+ WORKDIR /app
16+
17+ # Install dependencies seperately, to utilize caching
18+ RUN mkdir /app/aw-core
19+ COPY aw-core/requirements.txt /app/aw-core
20+ WORKDIR /app/aw-core
21+ RUN pip install -r requirements.txt
22+
23+ RUN mkdir /app/aw-server
24+ COPY aw-server/requirements.txt /app/aw-server
25+ WORKDIR /app/aw-server
26+ RUN pip install -r requirements.txt
27+
28+ # Build the rest
29+ WORKDIR /app
30+ COPY . /app
31+
32+ # Debugging, just for printing the build context
33+ # RUN find /tmp/build
34+
35+ RUN make build SKIP_WEBUI=true
36+
37+ # Entrypoint
38+ ENTRYPOINT ["/bin/sh" , "-c" ]
You can’t perform that action at this time.
0 commit comments