Skip to content

Commit 63b6b6f

Browse files
committed
build: added old WIP Dockerfile and dockerignore
1 parent eeba3b6 commit 63b6b6f

2 files changed

Lines changed: 44 additions & 0 deletions

File tree

.dockerignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
**/*.pyc
2+
.*cache
3+
**/node_modules
4+
aw-server-rust/target
5+
aw-android
6+
./other

Dockerfile

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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"]

0 commit comments

Comments
 (0)