-
-
Notifications
You must be signed in to change notification settings - Fork 594
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: added old WIP Dockerfile and dockerignore
- Loading branch information
Showing
2 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
**/*.pyc | ||
.*cache | ||
**/node_modules | ||
aw-server-rust/target | ||
aw-android | ||
./other |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
FROM python:3.8 | ||
|
||
ARG PORT | ||
ENV SERVER_PORT=$PORT | ||
|
||
# Disables pip caching | ||
ENV PIP_NO_CACHE_DIR=false | ||
|
||
# Install dependencies | ||
RUN apt-get update | ||
RUN apt-get install -y git build-essential apt-utils wget libfreetype6 libpng-dev libopenblas-dev gcc gfortran | ||
RUN python3 -m pip install pipenv | ||
|
||
RUN mkdir /app | ||
WORKDIR /app | ||
|
||
# Install dependencies seperately, to utilize caching | ||
RUN mkdir /app/aw-core | ||
COPY aw-core/requirements.txt /app/aw-core | ||
WORKDIR /app/aw-core | ||
RUN pip install -r requirements.txt | ||
|
||
RUN mkdir /app/aw-server | ||
COPY aw-server/requirements.txt /app/aw-server | ||
WORKDIR /app/aw-server | ||
RUN pip install -r requirements.txt | ||
|
||
# Build the rest | ||
WORKDIR /app | ||
COPY . /app | ||
|
||
# Debugging, just for printing the build context | ||
#RUN find /tmp/build | ||
|
||
RUN make build SKIP_WEBUI=true | ||
|
||
# Entrypoint | ||
ENTRYPOINT ["/bin/sh", "-c"] |